Avoid access to www subdomain on secure server
Posted
by user44654
on Server Fault
See other posts from Server Fault
or by user44654
Published on 2010-06-01T15:12:12Z
Indexed on
2010/06/01
15:14 UTC
Read the original article
Hit count: 221
I have an SSL certificate that is valid for mysite.co.uk but not www.mysite.co.uk it seems. If I use mod_rewrite or .htaccess to redirect from one to the other will this prevent browsers from displaying an invalid certificate security warning if someone tries to access www.mysite.co.uk?
(I've tried redirection but still get the warning if I type https://www.mysite.co.uk directly into the address bar of my browser. I want to know if this is because the redirection isn't working or if the browser will display the warning anyway.)
I hope that makes sense.
© Server Fault or respective owner