Answer the question
In order to leave comments, you need to log in
Why do browsers still try to open https after switching to http?
Domain delegated to Yandex. A-records were registered for "Hosting1". This hosting gave free SSL, and in principle there were norms. Yesterday I decided to move to another hosting, and changed A-records to "Hosting2". There is no longer an SSL certificate, I set up a redirect via htaccess to http.
But the site opens only in incognito mode FF. In opera, regular FF, in chrome, from the phone - everywhere it tries to open on https and gives an error. Cleared cache, didn't help.
Or is it a joke that the site itself was delegated to Hosting2, but the fact that SSL has disappeared there is somehow delegated longer, or how does it all work and why is that?
I thought the problem is in htaccess, but even this construction does not work:
RewriteCond %{HTTPS} On
RewriteRule ^.*$ http://%{SERVER_NAME}%{REQUEST_URI}
RewriteCond %{HTTP:X-Forwarded-Protocol} =https
RewriteRule .* http://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
RewriteCond %{ENV:HTTPS} on
RewriteRule ^(.*)$ http://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
Answer the question
In order to leave comments, you need to log in
But the site opens only in incognito mode FF. In opera, regular FF, in chrome, from the phone - everywhere it tries to open on https and gives an error. Cleared cache, didn't help.
server {
...
add_header Strict-Transport-Security "max-age=0; includeSubDomains; preload";
}
<IfModule mod_headers.c>
...
Header set Strict-Transport-Security "max-age=0; includeSubDomains; preload" env=HTTPS
</IfModule>
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question