Created
March 7, 2014 10:20
-
-
Save cdtr1/9409031 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you like to redirect a URL internally on Amazon S3: this is how it works. (also for external redirects).