开发者

Rewriterule Q, example.com/xml/title/ to example.com/xml/index.php?var=title

开发者 https://www.devze.com 2023-01-10 04:47 出处:网络
I have example.com/xml/index.php and I want to access it with this url example.com/xml/title/ and last part would be GET var开发者_Go百科 for index.php and it should show result using that var, what c

I have example.com/xml/index.php and I want to access it with this url example.com/xml/title/ and last part would be GET var开发者_Go百科 for index.php and it should show result using that var, what code should I add in my .htaccess file ? Thanks


Try this in the .htaccess file in your document root:

RewriteEngine on
RewriteRule ^xml/([^/]+)/$ xml/index.php?var=$1
0

精彩评论

暂无评论...
验证码 换一张
取 消