Apache URL重写PHP.htaccess
我不知道如何对.htaccess文件进行编码,使其重写如下URL:Apache URL重写PHP.htaccess,apache,.htaccess,url-rewriting,Apache,.htaccess,Url Rewriting,我不知道如何对.htaccess文件进行编码,使其重写如下URL: http://www.domain.com/one/two/three?four=five&six=seven 为此: http://www.domain.com/RequestHandler.php?path=one/two/three&four=five&six=seven 我不确定这是否可能,如果不可能,请告诉我。您可以在中使用。htaccess: RewriteEngine on Rewrit
http://www.domain.com/one/two/three?four=five&six=seven
为此:
http://www.domain.com/RequestHandler.php?path=one/two/three&four=five&six=seven
我不确定这是否可能,如果不可能,请告诉我。您可以在
中使用。htaccess
:
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ /RequestHandler.php?path=$1 [QSA,L]