How do I redirect if I have a website hosted on example.com hosted zone to anotherexample.com hosted zone. Both are different hosted zone in aws. Now I would want all the traffic that arrives in example.com to anotherexample.com
Since example.com
and anotherexample.com
are apex domains, you can't use CNAME nor Alias records. Subsequently, I think you could do redirections between the two apex domains with the help of S3 as explained in AWS docs: