請求----->應寫入新的URL
Apache的URL重寫問題
/機構/ DPS -----> /institute.php?slug=dps
/機構/ ABC - ----> /institute.php?slug=abc
/研究所/ 123 -----> /institute.php?slug=123
我使用下面的規則在.htaccess
重寫規則^學院/(.*)$ /institute.php?slug=$1
但是,它不起作用。 insitute.php頁面執行,但查詢字符串始終爲空。
有什麼建議嗎?
你是說重定向不工作,或者它沒有改變地址欄的網址?你的.htaccess文件位於哪裏? – jasonbar 2010-03-24 22:03:49
您的.htaccess中是否有其他規則可能存在衝突? – thetaiko 2010-03-24 22:07:00