Skip to content

Instantly share code, notes, and snippets.

@chrisdietr
Created March 7, 2014 10:20
Show Gist options
  • Save chrisdietr/9409031 to your computer and use it in GitHub Desktop.
Save chrisdietr/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>
@chrisdietr
Copy link
Author

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