Answer the question
In order to leave comments, you need to log in
How to set a redirect 301?
There is a site with such a domain: domain.ru, you need to redirect all its pages to domain.ru.com
RewriteCond %{REQUEST_FILENAME} robots.txt$ [NC]
RewriteRule ^([^/]+) $1 [L]
RewriteCond %{HTTP_HOST} ^domain\.ru
RewriteRule ^(.*)$ http://domain.ru.com/$1 [R=301,L]
RewriteCond
and redirects again. Answer the question
In order to leave comments, you need to log in
RewriteCond %{HTTP_HOST} ^domain\.ru$
Logically, it should be like this if you have both domains on the same server.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question