Answer the question
In order to leave comments, you need to log in
For multiple domains, redirect to https without WWW?
The client likes to buy similar domains, and in order not to climb into htaccess every time, they made such
Purchased domains site1.ru, site2.ru, site3.ru...site20.ru
### Начало переадресация на site.ru
RewriteCond %{HTTP_HOST} ^www\.(.*) [OR]
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://site.ru/$1 [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