Apache RewriteRule issue in .htaccess -


i have redirect permanently urls:

http://www.example.com/?par=1248 (with , without www) 

to

http://www.example.com 

using .htaccess file.

the placeholders used above, "par" , "1248", (char(s), number(s), ..)

this should work , redirect urls want:

rewriteengine on rewritecond %{the_request} ^(get|post)\ /\?(.*)\ http rewriterule ^ /? [r=301,l] 

Comments

Popular posts from this blog

android - Automated my builds -

php - Iterate over object properties with keys from second array -

apache - GeoServer under https -