I have a webserver that has an ssl certificate applied to a subdomain
https://shop.mydomain.com. I also have the hostname
http://mydomain.com that has no ssl certificate. When invoking
https://mydomain.com, browsers issue a warning that a certificate could not be verified because the webserver is identifying itself as
I would like all traffic that hits
https://mydomain.com to be redirected to
http://mydomain.com, and leave
https://shop.mydomain.com as is.
My httpd.conf file generally looks like this:
< VirtualHost 220.127.116.11:80 > ServerName shop.mydomain.com .. regular old port 80 .. < /VirtualHost > < VirtualHost 18.104.22.168:443 > ServerName shop.mydomain.com .. SSL applies here .. < /VirtualHost > < VirtualHost 22.214.171.124:80 > ServerName mydomain.com .. regular old port 80 .. < /VirtualHost >
It does not look as if I have SSL set up for
https://mydomain.com yet one can invoke SSL mode and the browser identifies the connection as
https://shop.mydomain.com. I need to redirect from
https://mydomain.com because for some reason, Google has indexed my website with this url even though it shows a warning.
I have tried various methods to get this to redirect and nothing has worked.
Any help would be greatly appreciated.
© Server Fault or respective owner