Answer the question
In order to leave comments, you need to log in
It does not redirect from http to https, while the site is not accessible at all via http. My cant?
Hello dear masters. The essence of the problem is that the site is not accessible via the http protocol, it gives (after 2-3 minutes of loading) an access error and does not redirect to https. If you enter a direct address via https, everything works. Tried many constructs in .htaccess worked fine yesterday
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-Proto} !https
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
none work today. The last one I triedRewriteEngine On
RewriteCond %{HTTP_HOST} ^(www.)?site.com$ [NC]
RewriteCond %{HTTP:X-Forwarded-Proto} !=https
RewriteRule ^(.*)$ https://siite.com/$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