MD_HTTP_REDIRECT

This identifier specifies the directory or URL to which clients are redirected when they attempt to access a specific resource. There are two general forms that the value for this identifier can take, one with wildcards, one without.

The format for the string without wildcards is simply 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 wildcard format for the value of this string is more complex: *;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.

Attributes

Data type STRING
Default inheritance Inheritable
User type IIS_MD_UT_FILE

Values

Default Value
Empty string

Metabase Keys

This identifier is available at the following metabase keys:

Metabase Path Key Type
/LM/W3SVC IIsWebService
/LM/W3SVC/n IIsWebServer
/LM/W3SVC/n/ROOT IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir IIsWebVirtualDir
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory IIsWebDirectory
/LM/W3SVC/n/ROOT/WebVirtualDir/WebDirectory/WebFile IIsWebFile

See Also

HttpRedirect