Solved

IIS 7 redirect

Posted on 2012-03-14
9
445 Views
Last Modified: 2012-05-03
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
0
Comment
Question by:adlertech
9 Comments
 
LVL 34

Expert Comment

by:Paul MacDonald
ID: 37722248
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.
0
 
LVL 39

Expert Comment

by:Adam Brown
ID: 37722276
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)
0
 
LVL 23

Expert Comment

by:Dirk Kotte
ID: 37722287
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
0
Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

 

Author Comment

by:adlertech
ID: 37722322
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
0
 
LVL 39

Expert Comment

by:Adam Brown
ID: 37722327
The method I mentioned will account for that without issues. Anything that lands on the root of the website will redirect to /production
0
 

Author Comment

by:adlertech
ID: 37722398
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
0
 
LVL 39

Expert Comment

by:Adam Brown
ID: 37722402
Just put in http://testserver.company.local:8183/production/index.htm for the path and it will go exactly there.
0
 

Author Comment

by:adlertech
ID: 37722642
Unfortunately this didn't work. I will have to continue working on this tomorrow.

Thank you
0
 
LVL 10

Accepted Solution

by:
Gajendra Rathod earned 500 total points
ID: 37839444
Please try with URL rewrite model , you can download from below site

http://www.microsoft.com/download/en/details.aspx?id=5747
0

Featured Post

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Scenario:  You do full backups to a internal hard drive in either product (SBS or Server 2008).  All goes well for a very long time.  One day, backups begin to fail with a message that the disk is full.  Your disk contains many, many more backups th…
A procedure for exporting installed hotfix details of remote computers using powershell
This tutorial will give a short introduction and overview of Backup Exec 2012 and how to navigate and perform basic functions. Click on the Backup Exec button in the upper left corner. From here, are global settings for the application such as conne…
This tutorial will walk an individual through locating and launching the BEUtility application to properly change the service account username and\or password in situation where it may be necessary or where the password has been inadvertently change…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question