如何删除index.php?action=show&;本地主机上url的id=1234
我的URL是localhost/merge/Clients/index.php?action=show&id=12。。 我只想让它看起来像localhost/merge/Clients如何删除index.php?action=show&;本地主机上url的id=1234,php,.htaccess,url-rewriting,Php,.htaccess,Url Rewriting,我的URL是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] 尝试更改为RewriteBase/merge
RewriteEngine on
RewriteBase /Clients/
RewriteCond %{THE_REQUEST} ^.*\/index\.php\ HTTP/
RewriteRule ^(.*)index\.php$ /$1 [R=301,NC]
尝试更改为
RewriteBase/merge/Clients/
,它对我不起作用。。{REQUEST_FILENAME}必须替换为我网站中的等效项,如果是真的。。我可以在{}之间放置什么作为请求文件名