Container for redirect information. You can redirect requests to another host, to
another page, or with another protocol. In the event of an error, you can can specify a different error code to return.

C# |
public class RoutingRuleRedirect

All Members | Constructors | Methods | Properties | ||
Icon | Member | Description |
---|---|---|
![]() | RoutingRuleRedirect()()()() | Initializes a new instance of the RoutingRuleRedirect class |
![]() | Equals(Object) | (Inherited from Object.) |
![]() | GetHashCode()()()() | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType()()()() | Gets the type of the current instance. (Inherited from Object.) |
![]() | HostName |
The host name to use in the redirect request.
|
![]() | HttpRedirectCode |
The HTTP redirect code to use on the response.
|
![]() | Protocol |
The protocol to use in the redirect request.
|
![]() | ReplaceKeyPrefixWith |
The object key prefix to use in the redirect request. For example, to redirect requests for all pages
with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with
KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents.
|
![]() | ReplaceKeyWith |
The specific object key to use in the redirect request. For example, redirect request to error.html.
|
![]() | ToString()()()() | Returns a string that represents the current object. (Inherited from Object.) |
![]() | WithHostName(String) | Obsolete.
The host name to use in the redirect request.
|
![]() | WithHttpRedirectCode(String) | Obsolete.
The HTTP redirect code to use on the response.
|
![]() | WithProtocol(String) | Obsolete.
The protocol to use in the redirect request.
|
![]() | WithReplaceKeyPrefixWith(String) | Obsolete.
The object key prefix to use in the redirect request. For example, to redirect requests for all pages
with prefix docs/ (objects in the docs/ folder) to documents/, you can set a condition block with
KeyPrefixEquals set to docs/ and in the Redirect set ReplaceKeyPrefixWith to /documents.
|
![]() | WithReplaceKeyWith(String) | Obsolete.
The specific object key to use in the redirect request. For example, redirect request to error.html.
|

Object | |
![]() | RoutingRuleRedirect |