N
N
nikita1sm2019-08-19 12:11:43
1C-Bitrix
nikita1sm, 2019-08-19 12:11:43

How to set up a redirect to www?

Please tell me how to set up a site redirect:
https://site.ru
to
https://www.site.ru

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Viktor Taran, 2019-08-19
@shambler81

cap well google ...

RewriteCond %{HTTP_HOST} ^site\.ru$ [NC]
RewriteRule ^(.*)$ http://www.site.ru/$1 [R=301,L]

N
nikita1sm, 2019-08-20
@nikita1sm

https://c-wd.ru/tools/htaccess/
Found a cool online configuration tool. Who needs it - use it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question