Link to home
Start Free TrialLog in
Avatar of dowhatyoudo22
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?
Avatar of Wayne88
Wayne88
Flag of Canada image

Can you have a look at this site and let me know if this is the way you did it?  I didn't run into problem redirecting non WWW to the WWW website.

HTTP Redirection in IIS 7 on Windows Server 2008: http://blog.pluralsight.com/iis7-redirect-windows-server-2008
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
Avatar of dowhatyoudo22
dowhatyoudo22

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of dowhatyoudo22
dowhatyoudo22

ASKER

URL Rewrite was the solution