Answer the question
In order to leave comments, you need to log in
How to make it not redirect?
Hello!
We moved the site to a new domain, the urls remained the same.
To do this, write something like
RewriteEngine on
RewriteRule (.*) http://www.newdomain.ru/$1 [R=301,L]
Answer the question
In order to leave comments, you need to log in
If both sites are handled by the same .htaccess, then you can try
RewriteEngine on
RewriteBase /
RewriteCond %{HTTP_HOST} oldsite.ru$
Rewriterule ^robots.txt$ robots-oldsite.txt [L]
RewriteRule (.*) http://www.newdomain.ru/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question