0
我的網址是localhost/merge/Clients/index.php?action = show & id = 12 .. 我想讓它像localhost /合併/客戶如何從本地主機上的url中刪除index.php?action = show&id = 1234
RewriteEngine on
RewriteBase /Clients/
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,NC]
它不爲我工作.. {} REQUEST_FILENAME必須是相當於在我的網站是什麼,如果真的更換..什麼我可以把之間{ }作爲REQUEST_FILENAME – Chriss