remove query string from url

by Francis 2014-12-15 16:30:08

Remove query string from url

For an example , index.php?name=joe redirect to joe.html use following code.
RewriteEngine On
RewriteCond %{QUERY_STRING} query=(.*) [NC]
RewriteRule ^.*$ path/%1.html? [R=301,L]


 
2047
like
0
dislike
0
mail
flag

You must LOGIN to add comments