Answer the question
In order to leave comments, you need to log in
How to make a redirect from all https subdomains to the main one?
SSL is set for https://site.com only , no sub-domains.
There are no sub-domains on the site, and it is necessary that redirect to the main page works from any sub-domain.
From fdsaf.site.com we go to https://site.com without any problems.
But from http s ://fdsaf.site.com we do not go to https://site.com , the browser swears at security.
Can I somehow set it up? (for example, from https://sdf.olx.ua there is a transition to https://olx.ua , the question is how did you do it?)
Answer the question
In order to leave comments, you need to log in
Certificates are of different types. They can apply to both the main domain and its subdomains. In your case, most likely the first option. If you force-enable https for subdomains, naturally the browser will tell you dosvidos. Do not forget that when using SSL, the page should not contain http links, only https.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question