Share via

Configuring HTTP Redirection in IIS 7

Applies To: Windows 7, Windows Server 2008, Windows Server 2008 R2, Windows Vista

Redirection is one way to make sure that users always receive the Web page that they want. Redirection refers to the process of configuring the Web server to issue a redirect message to the client, such as HTTP 302, which instructs the client to resubmit the request for a new location. You can redirect users to another file, directory, or site.

Redirection is helpful in the following situations:

  • You change the location of your Web site and want to redirect users to your new site.

  • Your Web site is under construction and you want part of the site to be unavailable.

  • Your content is not located on the Web server.

  • You have changed the name of a virtual directory and you want users to be able to access files from the old URL.


For information about the levels at which you can perform these procedures, and the modules, handlers, and permissions that are required to perform these procedures, see HTTP Redirection Feature Requirements (IIS 7)


This task includes the following procedures:

Configure the Web Server to Redirect Requests to a Relative Destination (IIS 7)

Configure the Web Server to Redirect Requests to an Exact Destination (IIS 7)

Limit Redirection to Content in the Destination Directory (IIS 7)

Configure the Status Code for Redirection (IIS 7)