How to URL or website redirect to another URL on IIS Server
- Details
- Last Updated: Thursday, 08 January 2015 23:19
- Hits: 10604
Article Index
You can use IIS to perform any of the following browser redirection procedures:
-
Redirect requests to another folder or Web site.
-
Redirect requests to a file.
-
Redirect requests to a network share.
-
Redirect requests to a program.
Configure Redirection on IIS 7.0 (Windows Server 2008)
HTTP Redirection is not available on the default installation of IIS 7 and IIS 7.5.
HTTP Redirection installation on IIS 7 (Windows Server 2008 or 2008 R2)
-
Open Server Manager which available on administrative tool (Start Menu\Administrative tools)
-
In the Server Manager Hierarchy pane, expand Roles, and then click Web Server (IIS).
-
In the Web Server (IIS) pane, scroll to the Role Services section, and then click Add Role Services.
-
On the Select Role Services page of the Add Role Services Wizard, expand Common Http Features, select HTTP Redirection, and then click N
-
On the Confirm Installation Selections page, click Install.
-
On the Results page, click Close.
HTTP Redirection installation on IIS 7.5 (Windows Vista and Windows 7)
-
On the taskbar, click Start, and then click Control Panel.
-
In Control Panel, click Programs and Features, and then click Turn Windows Features on or off.
-
Expand Internet Information Services, then World Wide Web Services, then Common Http Features.
-
Select HTTP Redirection, and then click OK.
Set Redirection for folder, and website on IIS 7.5
-
Open Internet Information Services (IIS) Manager: Administrative tools\ Internet Information Services (IIS) Manager or Run Type “inetmgr”
-
In the Connections pane, expand the server name, expand Sites, and then navigate to the Web site or application
-
In the Home pane, double-click HTTP Redirect.
-
In the HTTP Redirect page, check the box to “redirect requests and enter the destination”
You can optionally specify any of the following options:
-
Configure the redirection destination to be the exact destination as entered.
-
Configure the redirection destination to be limited to the destination URL's root folder, not subfolders.
-
Configure the HTTP status code, which can be one of these three options:
-
301 Permanent
-
302 Found
-
307 Temporary
-
Note: IIS 7 will respectively return the following actual HTTP response statuses for each of the above options:
-
HTTP/1.1 301 Moved Permanently
-
HTTP/1.1 302 Redirect
-
HTTP/1.1 307 Redirect
-
When you have finished all the above changes, click Apply in the Tasks pane.
Redirection on IIS 6.0 (Windows XP or Windows Server 2003)
Login Server with Administrator Account
-
Open IIS Manager,
-
Click start menu\All Programs\Administrative Tools\Inter Information Service (IIS) Manager -Or-
-
Run \ Type – “inetmgr” (When you have installed IIS successfully
-
Expend Server name and then Website folder
-
Right click on website which you want to redirect and click properties
-
Go to Home Directory Tab
-
Here you can set your site directory and for redirection click “A redirection to a URL”
-
Type the redirected URL (Uniform Resource Locator)
[Note: - How to Redirect a URL to application clicks here and see on Microsoft website http://support.microsoft.com/kb/313074#5]