Skip to content

Instantly share code, notes, and snippets.

@cdtr1
Created March 7, 2014 10:20
Show Gist options
  • Save cdtr1/9409031 to your computer and use it in GitHub Desktop.
Save cdtr1/9409031 to your computer and use it in GitHub Desktop.
<RoutingRules>
<RoutingRule>
<Condition>
<KeyPrefixEquals>old-slug</KeyPrefixEquals>
</Condition>
<Redirect>
<Protocol>http-or-https</Protocol>
<HostName>yourdomain.tld</HostName>
<ReplaceKeyPrefixWith>new-slug</ReplaceKeyPrefixWith>
<HttpRedirectCode>301</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>
@cdtr1
Copy link
Author

cdtr1 commented Mar 7, 2014

If you like to redirect a URL internally on Amazon S3: this is how it works. (also for external redirects).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment