Answer the question
In order to leave comments, you need to log in
How to set up an htaccess redirect?
Hello. How to set up a redirect of the pages of the old site to new urls according to the condition:
RewriteCond %{HTTP_REFERER} (referer|referer2|referer3)
RewriteRule /page1.html http://site.ru/main1.html [R=301,L]
RewriteRule /page2.html http://site.ru/main2.html [R=301,L]
RewriteRule /page3.html http://site.ru/main3.html [R=301,L]
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