You can use s3 redirection rules to setup redirects.
For example, you might want to redirect one easy to remember domain to some tricky URL.
Create an empty bucket, point your domain to it, then create a rule that catches 404 Not Found
and redirects it wherever you need.
[
{
"Condition": {
"HttpErrorCodeReturnedEquals": "404"
},
"Redirect": {
"Protocol": "https",
"HostName": "example.com",
"ReplaceKeyPrefixWith": "/my-long/url/2020/yes.html",
"HttpRedirectCode": "302"
}
}
]
<RoutingRules>
<RoutingRule>
<Condition>
<HttpErrorCodeReturnedEquals>404</HttpErrorCodeReturnedEquals>
</Condition>
<Redirect>
<Protocol>https</Protocol>
<HostName>example.com</HostName>
<ReplaceKeyPrefixWith>/my-long/url/2020/yes.html</ReplaceKeyPrefixWith>
<HttpRedirectCode>302</HttpRedirectCode>
</Redirect>
</RoutingRule>
</RoutingRules>