开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜