Solved

IIS 7 redirect

Posted on 2012-03-14
9
437 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 33

Expert Comment

by:paulmacd
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 38

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
 

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
Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

 
LVL 38

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 38

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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

To effectively work with Diskpart on a Server Core, it is necessary to write some small batch script's, because you can't execute diskpart in a remote powershell session. To get startet, place the Diskpart batch script's into a share on your loca…
Lync server 2013 Backup Service Error ID 4049 – After File Share Migration
This tutorial will walk an individual through the steps necessary to install and configure the Windows Server Backup Utility. Directly connect an external storage device such as a USB drive, or CD\DVD burner: If the device is a USB drive, ensure i…
This tutorial will walk an individual through the process of transferring the five major, necessary Active Directory Roles, commonly referred to as the FSMO roles to another domain controller. Log onto the new domain controller with a user account t…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now