How to set website redirection from IIS 7?

This article will guide you to redirect the URL using HTTP Redirect functionality in IIS.

  1. Open IIS Manager from Start >> Administrative Tools >> Internet Information Services (IIS) Manager.

    Open IIS Manager

  2. Expand the server name in the connection pane, then expand the Sites and navigate to the domain. Double-click on Http Redirect option.

    Select a Website and Double Click on HTTP Redirect Option

  3. Mark the check box Redirect requests to this destination and mention the URL to which you want to redirect your site.

    Specify Rules for Redirecting Incoming Requests

    After that you will be provided with the below mentioned options for Redirect Behavior:

    • Redirect all requests to exact destination (instead of relative to destination): When this option is checked, regardless of the original destination, all requests will be redirected to exact location specified in the box. If this option is unchecked everything will be redirected relative to the destination.
    • Only redirect requests to content in this directory (not subdirectories): When you set redirection, by default content would be served by main directory and all its subdirectories. When you check this option, you can limit requests to just main directory without affecting the subdirectories.
    • Status code: With this drop down you can select the status code (301, 302 and 307) you want to send back while redirecting.

      • 301 Permanent ==> IIS 7 will return HTTP response status as HTTP/1.1 301 Moved Permanently
      • 302 Found ==> IIS 7 will return HTTP response status as HTTP/1.1 302 Redirect
      • 307 Temporary ==> IIS 7 will return HTTP response status as HTTP/1.1 307 Redirect


  4. After selecting the appropriate options, click on Apply.

  • 2 Users Found This Useful

Was this answer helpful?

Related Articles

How to set periodic recycling for application pool in IIS 7?

Following are the steps to set periodic recycling for the application pool in IIS 7: Login to...

How to import SSL certificate in Windows server?

To import SSL Certificate in Windows Server, firstly, you need to export the SSL certificate....

How to create a certificate signing request [CSR] from IIS 7.5 in your VPS?

Follow the below mentioned steps to create Certificate signing request from IIS 7.5 in your VPS:...

After Successful SSL Certificate Installation, It Disappeared From IIS Server Certificates

Suppose, you want to install SSL certificate on your domain, you've obtained the SSL certificate...

How to create an FTP account from IIS in Windows Server 2003?

This article will guide you on how to create an FTP account in Windows Server 2003 from IIS. For...