IIS7 -- how to have IIS do server side redirection of http://mydomain.com to http://www.mydomain.com

Hi, we want IIS7 to automatically re-write/direct any client coming in on http://mydomain.com to http://www.mydomain.com

This should all be done server side, before the page is served, we don't want clients to see any redirection going on -- any recommendations on how best to do this?

Thank you,

Chad
LVL 1
TTU_LAW_ITAsked:
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.

Shreedhar EtteCommented:
Hi,

Refer this article:
http://technet.microsoft.com/en-us/library/cc770409(WS.10).aspx

I hope this helps,
Shree
0
Shreedhar EtteCommented:
0
tanujchandnaCommented:
Hi,

Create two websites with same name in IIS on shared IP but change the hostheader value. Create first one (yourdomain.com) using domain.com host header value and secondone with same domain name (yourdomain.com) using www.domain.com host header. Now do the IIS redirection on domain.com website to www.domain.com
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
TTU_LAW_ITAuthor Commented:
Thank you, that did the trick.
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.