AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.
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.
Version: (assembly version)
public class RoutingRuleRedirect : Object
The RoutingRuleRedirect type exposes the following members
|HostName||System.String||Name of the host where requests will be redirected.|
|HttpRedirectCode||System.String||The HTTP redirect code to use on the response. Not required if one of the siblings is present.|
|Protocol||System.String||Protocol to use (http, https) when redirecting requests. The default is the protocol that is used in the original request.|
|ReplaceKeyPrefixWith||System.String||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. Not required if one of the siblings is present. Can be present only if ReplaceKeyWith is not provided.|
|ReplaceKeyWith||System.String||The specific object key to use in the redirect request. For example, redirect request to error.html. Not required if one of the sibling is present. Can be present only if ReplaceKeyPrefixWith is not provided.|
Supported in: 4.5, 4.0, 3.5
.NET for Windows Store apps:
Supported in: Windows 8.1, Windows 8
.NET for Windows Phone:
Supported in: Windows Phone 8.1, Windows Phone 8