E
E
Eugene M2018-07-10 11:30:30
1C-Bitrix
Eugene M, 2018-07-10 11:30:30

How to redirect to https in Bitrix?

I know there are a lot of examples, nothing works.
htaccess standard
It turned out to do this, it works from www to https.

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

How else to add here to from http to https?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Igor Petrov, 2018-07-10
@tamerline

RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

V
Viktor Taran, 2018-07-10
@shambler81

Wrote here
https://klondike-studio.ru/standards/standartnyy-h...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question