Inspired by Netlify's redirect syntax, build S3 conditional routing rules using a simple syntax as shown below:
/home / /blog/my-post.php /blog/my-post 301 /news /blog 200 /google https://www.google.com
KeyPrefixEquals
ReplaceKeyPrefixWith
or ReplaceKeyWith
depending whether or not there is a trailing /
characterhttp[s]
, HostName
and Protocol
will be added to the redirectHttpRedirectCode
to the redirect