

# RedirectAllRequestsTo
<a name="API_RedirectAllRequestsTo"></a>

Specifies the redirect behavior of all requests to a website endpoint of an Amazon S3 bucket.

## Contents
<a name="API_RedirectAllRequestsTo_Contents"></a>

 ** HostName **   <a name="AmazonS3-Type-RedirectAllRequestsTo-HostName"></a>
Name of the host where requests are redirected.  
Type: String  
Required: Yes

 ** Protocol **   <a name="AmazonS3-Type-RedirectAllRequestsTo-Protocol"></a>
Protocol to use when redirecting requests. The default is the protocol that is used in the original request.  
Type: String  
Valid Values: `http | https`   
Required: No

## See Also
<a name="API_RedirectAllRequestsTo_SeeAlso"></a>

For more information about using this API in one of the language-specific AWS SDKs, see the following:
+  [AWS SDK for C\$1\$1](https://docs.aws.amazon.com/goto/SdkForCpp/s3-2006-03-01/RedirectAllRequestsTo) 
+  [AWS SDK for Java V2](https://docs.aws.amazon.com/goto/SdkForJavaV2/s3-2006-03-01/RedirectAllRequestsTo) 
+  [AWS SDK for Ruby V3](https://docs.aws.amazon.com/goto/SdkForRubyV3/s3-2006-03-01/RedirectAllRequestsTo) 