dowhatyoudo22
asked on
how to redirect a secure site to www
I have an SSL key for 'www.site.com' When users go to 'www.site.com' everything works just fine. When users go to 'site.com' they are presented with a certificate error message. My site is running on Windows Server 2008 R2 (IIS 7.5) how can I configure IIS so that all attempts to 'site.com' are redirected to 'www.site.com' ?
I have tried to use the HTTP Redirect function but when I enter 'https://www.site.com' into the destination field and test I get an error that the page cannot be loaded.
I have tried to use the URL Rewrite function but nothing appears to happen.
Any suggestions?
I have tried to use the HTTP Redirect function but when I enter 'https://www.site.com' into the destination field and test I get an error that the page cannot be loaded.
I have tried to use the URL Rewrite function but nothing appears to happen.
Any suggestions?
You can't use a redirect for that because the connection is being rejected before you can redirect it. However, most Certs are issued for both the 'www.site.com' and 'site.com' names. You should talk to the cert supplier about that.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
URL Rewrite was the solution
HTTP Redirection in IIS 7 on Windows Server 2008: http://blog.pluralsight.com/iis7-redirect-windows-server-2008