Is there a method for redirecting HTTPS domain without a certificate to one with a certificate in Apache 2 or to HTTP?
If no certificate is found, go to HTTP instead.
Server Fault is a question and answer site for system and network administrators. It only takes a minute to sign up.
Sign up to join this communityIs there a method for redirecting HTTPS domain without a certificate to one with a certificate in Apache 2 or to HTTP?
If no certificate is found, go to HTTP instead.
If you don't have a valid TLS certificate for a server / virtual host, browsers won't connect to it without giving a warning.
A TLS connection must be properly set up before the HTTP redirect message can be sent to the client.
I suggest you get a free Let's Encrypt certificate on your server and use HTTPS.
*.subdomain.example.com
subdomains.
Feb 17, 2019 at 19:16