0
我想寫一個重寫規則,將特定的URL轉換爲另一個。htaccess創建一個新的重寫代碼
網址:http://www.example.com/index.php?r=site/action¶m1=value1
期望的結果:http://www.example.com/value1
,我試圖htaccess的是:
RewriteEngine On
RewriteRule ^index\.php\?r=site/action¶m1=([a-zA-Z])$ $1 [L]
但是,這是行不通的。請問你能幫幫我嗎?
這有什麼做用PHP,請不要濫用標籤。如果您剛獲得此價值,網站/行動的重點是什麼?這可能是一些協助,雖然你的問題有點不同http://stackoverflow.com/questions/25873223/a-htaccess-php-templating-system/25873323#25873323 – mschuett 2014-09-23 21:13:31