How to – IIS 7.5 Domain Redirection

If you host your web site on your own server (virtual or dedicated) and you want to redirect your main domain then this is what you should do:

(Assuming you are using Windows Server 2008, IIS 7.5)

1-) First check if “Http Redirection” service is installed:

  1. Open up the “Server Manager”.
  2. Go to “Roles -> Web Server (IIS)”.
  3. Scroll down to “Role Services” section.
  4. Check status for “Http Redirection”.
  5. If Http Redirection is not installed click “Add Role Services” on the right.
  6. Install Http Redirection service.
  7. Restart IIS Manager.

2-) Then do the following:

  1. Click on the site name you want to redirect and double-click “Http Redirect” on the right.
  2. Select “Redirect requests to this destination”.
  3. Enter the domain that you want to redirect to.
  4. Select type of redirection (301, 302 etc.)
  5. Click “Apply”.

Note: If you write the redirection address without “http://” (like subdomain.domain.com) it will redirect to domain.com/subdomain.domain.com, if you write the redirection address with “http://” ( like http://subdomain.domain.com) it will redirect to subdomain.domain.com.

Now your site should be redirecting.

Hope this helps someone.

Good luck,
Serdar.

Leave a Reply

Your email address will not be published. Required fields are marked *