Answer the question
In order to leave comments, you need to log in
How to properly set up a 301 redirect over CNC?
Hey!
There are the following urls on the project: item.php?country=ru&city=yalta&id=123
Set up CNC for them (/ru/yalta/123/):
RewriteEngine on
RewriteRule ^([az]+)/([az-]+)/ ([0-9]+)/?$ item.php?country=$1&city=$2&id=$3 [QSA]
Everything worked fine, but now the url scheme has changed, and you need to register a 301 redirect for all pages.
It was: /ru/yalta/123/ Needed
: /ru/alupka/123/
I do this:
Redirect 301 /ru/yalta/123/ /ru/alupka/123/
But the redirect works very strange, in the browser you get this URL:
/ ru/alupka/123/?country=ru&city=yalta&id=123
Advise what to do in this situation?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question