Skip to main content

RoutingRule

Container for one routing rule that identifies a condition and a redirect.

Syntax

<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>string</HttpErrorCodeReturnedEquals>
<KeyPrefixEquals>string</KeyPrefixEquals>
</Condition>
<Redirect>
<HostName>string</HostName>
<HttpRedirectCode>string</HttpRedirectCode>
<Protocol>string</Protocol>
<ReplaceKeyPrefixWith>string</ReplaceKeyPrefixWith>
<ReplaceKeyWith>string</ReplaceKeyWith>
</Redirect>
</RoutingRule>

Elements

NameTypeDescriptionRequired
ConditionConditionContainer for describing a condition that must be met for the specified redirect to be applied. If no condition is specified, all requests will be redirected.No
RedirectRedirectContainer element that provides instructions for redirecting the request. You can redirect requests to another host, to another page, or with another protocol.Yes