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?
dowhatyoudo22Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Wayne88Commented:
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
0
Dave BaldwinFixer of ProblemsCommented:
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.
0
dowhatyoudo22Author Commented:
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
dowhatyoudo22Author Commented:
URL Rewrite was the solution
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft IIS Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.