Answer the question
In order to leave comments, you need to log in
How to make a 301 redirect from links with parameters?
There is a site where links have a parameter in them, you need to redirect it to a new page, I write using this rule:
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{QUERY_STRING} ^_route_=?page=about$
RewriteRule ^(.*)$ http ://new_site/about-us/? [R=301,L]
Everything seems to be happening correctly, what is needed is displayed, only an extra additive appears
: http://new_site.ru/about-us/?page=about
Tried it in other ways - the result is the same, it works, but with unnecessary additive. How to solve the problem?
Answer the question
In order to leave comments, you need to log in
Try this:
RewriteRule ^page=about?/?$ http://new_site/about-us/? [L,R=301]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question