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?
Microsoft IIS Web ServerASP

Avatar of undefined
Last Comment
dowhatyoudo22

8/22/2022 - Mon
Wayne88

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
Dave Baldwin

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
dowhatyoudo22

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
dowhatyoudo22

ASKER
URL Rewrite was the solution
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23