Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/.htaccess/5.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Apache URL重写PHP.htaccess_Apache_.htaccess_Url Rewriting - Fatal编程技术网

Apache URL重写PHP.htaccess

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

我不知道如何对.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
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]+)$ /RequestHandler.php?path=$1 [QSA,L]