The trick for redirecting domains with AWS is to make sure the bucket name exactly matches the domain name. These notes so that I don’t forget this again.
www.oldsite.org that you want to redirect to
www.newsite.org. You want to do this with AWS technologies only.
Create buckets in S3 for the old sites, ensuring the bucket name exactly matches the domain name.
That is, create two buckets:
Set these buckets up however you want as static web sites.
For example, redirecting to another bucket such as
newsite.org; or serving
index.html content with meta refresh headers.
In Route53, create A records for each of
Select “Alias” as the type of record
The corresponding bucket name should appear in the “Alias Target” drop down for you to select.
The oldsite.org should now be serving newsite.org content.