我在.htaccess哈瓦一個有些問題..PHP htaccess的問題重定向
我的網站的網址是前。 www.example.com/
,當我們去到城市頁面使用dropdown..its來index.php?city=cityname
(它是正確的)
,當我們去公司簡介頁面說到做到indexpage,而不是關於我們頁面
城市頁面網址:www.example.com/cityname
關於我們網址:www.example.com/about-us
下面的htaccess代碼;
,當我們去了解我們的頁面談到索引頁
RewriteRule ^([a-zA-Z0-9_-]+)$ index.php?city=$1
RewriteRule ^about-us$ about_us.php
爲了幫助澄清,告訴我們究竟是預期的行爲,以及究竟正在發生的事情吧。謝謝。 – 2012-04-23 04:45:48