HttpRedirect

This property specifies the directory or URL to which a client is redirected when they attempt to access a specific resource. There are two general forms that the value for this property can take, one simple and one more powerful.

The simple format is Destination, Flag, where Destination can specify either a URL or a virtual path to a file. Flag can have one of three values: EXACT_DESTINATION indicates that the value provided for Destination should be considered an absolute target location; CHILD_ONLY indicates that the value should be prepended to the filename of the request to be redirected; and PERMANENT indicates that this redirection will be permanent for this resource.

The more complex form of specification for this property involves the use of wildcards. The format is *; Wildcard1; Destination1; Wildcard2; Destination2, Flag. Each Wildcard; Destination pair indicates that requests matching the wildcard are redirected to the specified destination. Flag can have the same values as the simple string format.

The following table describes this property:

Data type String
Default value Empty string (No redirects)
Default inheritance Inheritable

Accessible by IIS Admin Objects:

IIsWebService IIsWebServer IIsWebVirtualDir IIsWebDirectory
IIsWebFile