URL重写PHP .htaccess

用户名

我不知道如何编码.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]

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章