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
精彩评论