Answer the question
In order to leave comments, you need to log in
How to redirect from multiple domains to one?
There are 4 domains. One main and 3 additional. It is necessary to make a 301 redirect from them to the main one.
Note 1: all without www
Note 2: with https
Note 3: two of the three home domains are
Cyrillic
RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.ru [OR]
RewriteCond %{HTTP_HOST} ^кириллический1.XN--P1AI [OR]
RewriteCond %{HTTP_HOST} ^кириллический2.XN--P1AI
RewriteRule ^(.*)$ https://mainsite.ru/$1 [R=permanent,L]
Answer the question
In order to leave comments, you need to log in
RewriteCond %{HTTP_HOST} ^(www\.|)9918474\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)site4top\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)sunnyfruits\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)u-kit\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)mediagrup\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)vmast\.ru$ [NC,OR]
RewriteCond %{HTTP_HOST} ^(www\.|)desid\.ru$ [NC]
RewriteRule ^(.*)$ https://klondike-studio.ru/ [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question