Posts Tagged ‘301 redirect’

301 redirect

Posted: October 29, 2010 in Internet, Networking, Server
Tags: ,


In some situations, we have to make some manual configurations in IIS in order to implement a customers 301 redirect requests. Here are some types of requests that require manual configurations:

* The customer wants to setup a 301 redirect for a domain alias
* The customer wants to setup a 301 redirect for to point to

In order to setup the redirect, please follow these steps:

1. Open the IIS MMC
2. Browse to the existing site in IIS.
3. Right click on the site. Select Properties.
4. Click Advanced. Remove any host headers from the URL that we will be configuring 301 redirects on.
5. Right click on Web Sites. Select New Web Site.
* The description should be 301_URL_being_redirected_primary_domain (ex
* The IP address should match the IP address of the host header(s) you removed above.
* The host header should match the host header you removed above.
* Enter the path as c:\inetpub\wwwroot
6. Now, right click on the newly created site, select properties.
7. Under the home directory tab, select “A redirection to a URL”. Redirect to the URL specified by the customer. Check “A permanent redirection for this resource”
* Make sure the checkbox “The exact URL entered above” is _NOT_ checked.
8. Under the Web Site tab, click advanced. Setup any additional host headers required.
9. If the main web site has a dedicated IP address: You will also need to setup host headers for the dedicated IP address on the 301 site you created above.

For a working example of this, please check WEHOST8 sites and For this particular example, the customer wanted requests to and to be redirected to, and the domain also had a dedicated IP address.