IIS 7 redirect

I need help with redirecting a URL. I am running IIS7 on Server EE 2008.

I would like to redirect http://test.company.com to http://testserver.company.local/production/index.htm.

Basically when a user types the URL test.company.com I want them to be redirected to testserver.company.local/production/index.htm

Thank you
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

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.

Paul MacDonaldDirector, Information SystemsCommented:
Why not set the server up so testserver.company.local/production is the root of the site and then set index.htm as a default page?

I presume DNS already points test.company.com to testserver.company.local.
Adam BrownSr Solutions ArchitectCommented:
Open IIS, go to the website, select HTTP Redirect from the window in the middle, and click the box that says redirect websites to: and put in the location you want to redirect to.

Edit: It should be noted that HTTP redirect can break certain web applications. RD Gateway, for instance (Found that out the hard way)
Dirk KotteSECommented:
create an dns entry for test.company.com pointing to your webserver.
create a new webpage listening to the url "test.company.com"
create a default document at this page redirecting the user to  http://testserver.company.local/production/index.htm
Protecting & Securing Your Critical Data

Considering 93 percent of companies file for bankruptcy within 12 months of a disaster that blocked access to their data for 10 days or more, planning for the worst is just smart business. Learn how Acronis Backup integrates security at every stage

adlertechAuthor Commented:
Thank you all for you responses.

The DNS entry has already been created and tested.

I should also mention that the port it's listening on is 8183 so the actual link is http://testserver.company.local:8183/production/index.htm
Adam BrownSr Solutions ArchitectCommented:
The method I mentioned will account for that without issues. Anything that lands on the root of the website will redirect to /production
adlertechAuthor Commented:
Once I enable HTTP redirection in IIS 7, is my path going to be the location of the index.htm file?

Unfortunately we don't have anyone here who is all that familiar with IIS.

Thank you
Adam BrownSr Solutions ArchitectCommented:
Just put in http://testserver.company.local:8183/production/index.htm for the path and it will go exactly there.
adlertechAuthor Commented:
Unfortunately this didn't work. I will have to continue working on this tomorrow.

Thank you
Gajendra RathodLead System AdministratorCommented:
Please try with URL rewrite model , you can download from below site


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
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.