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
Microsoft IIS Web ServerWindows Server 2008
Last Comment
Gajendra Rathod
8/22/2022 - Mon
Paul MacDonald
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 Brown
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 Kotte
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
I presume DNS already points test.company.com to testserver.company.local.