如何从localhost上的url中删除index.php?action = show& id = 1234

时间:2014-01-25 19:23:55

标签: php .htaccess url-rewriting

我的网址是localhost / merge / Clients / index.php?action = show& id = 12 ..  所有我想让它像localhost / merge / Clients

RewriteEngine on
RewriteBase /Clients/
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,NC] 

1 个答案:

答案 0 :(得分:0)

尝试更改为RewriteBase /merge/Clients/