Gets the HTTP redirect settings for a website or virtual directory/application under a website.
Get-IisHttpRedirect [-SiteName] <String> [[-Path] <String>] [<CommonParameters>]
The settings are returned as a hashtable with the following properties:
True
if the redirect is enabled, False
otherwise.True
if redirects are to an exact destination, not relative to the destination. Whatever that means.True
if redirects are only to content in the destination directory (not subdirectories).Name | Type | Description | Required? | Pipeline Input | Default Value |
---|---|---|---|---|---|
SiteName | String | The site's whose HTTP redirect settings will be retrieved. | true | false | |
Path | String | The optional path to a sub-directory under SiteName whose settings to return.
|
false | false |
Get-IisHttpRedirect -SiteName ExampleWebsite
Gets the redirect settings for ExampleWebsite.
Get-IisHttpRedirect -SiteName ExampleWebsite -Path MyVirtualDirectory
Gets the redirect settings for the MyVirtualDirectory virtual directory under ExampleWebsite.