Answer the question
In order to leave comments, you need to log in
How to disable the use of SSL?
Hello.
There was a following problem. There is a site example.com with an SSL certificate. and there is a subdomain for it for development dev.example.com to which the certificate does not apply.
If I reset the browser cache (chrome) then I can safely go to dev.example.com. but as soon as I go to example.com, the browser tries to immediately transfer the subdomain to https, and since there is no script, nothing works, is it possible to somehow configure this behavior in the browser?
Answer the question
In order to leave comments, you need to log in
1. More correct option: make a certificate on dev.example.xyz
2. Less correct option: disable HSTS for subdomains on example.xyz
Most likely there is a 301 redirect in .htaccess (from http to https), you need to find something like this and delete it:
RewriteCond %{HTTPS} =on
RewriteRule ^ - [env=proto:https]
RewriteCond %{HTTPS} !=on
RewriteRule ^ - [env=proto:http]
RewriteCond %{HTTPS} !=on
RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question