Skip to content

Instantly share code, notes, and snippets.

@josephabrahams
Created June 2, 2018 23:02
Show Gist options
  • Save josephabrahams/8f833f060223b4447c8ee46bde3b2568 to your computer and use it in GitHub Desktop.
Save josephabrahams/8f833f060223b4447c8ee46bde3b2568 to your computer and use it in GitHub Desktop.
Redirect all requests from S3 bucket to another domain and strip the path.
<RoutingRules>
<RoutingRule>
<Redirect>
<HostName>example.com</HostName>
<HttpRedirectCode>301</HttpRedirectCode>
<Protocol>https</Protocol>
<ReplaceKeyWith/>
</Redirect>
</RoutingRule>
</RoutingRules>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment