Answer the question
In order to leave comments, you need to log in
Why doesn't 301 redirect htaccess work?
Good afternoon. I did an elementary redirect and ran into a problem - it does not work.
Redirect 301 /index.php?productID=1109 http://*****.***/krovlya/polimernaya-krovlya
Redirect 301 / https://google.com/
Answer the question
In order to leave comments, you need to log in
Because in Redirect only url without parameters is taken into account, i.e. will work like this (redirect from /index.php to the new one):
in your case, you need to use RewriteCond and RewriteUrl, like this:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^productID=1109$
RewriteRule ^/?index\.php$ http://*****.***/krovlya/polimernaya-krovlya [L,R=301]
as agreed today, the second one /?
at the end of the url "where" will delete the get request.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question