- Newest
- Most votes
- Most comments
Hi there
The short answer is you can do this with Route53 using whats known as an Alias record. Please see this blog post for the instructions: https://aws.amazon.com/premiumsupport/knowledge-center/route-53-redirect-to-another-domain/ If its a valid alias target, then you should not be using a CNAME like you mentioned in your post.
For example, if you register the DNS name example.com, the zone apex is example.com. You can't create a CNAME record for example.com, but you can create an alias record for example.com that routes traffic to www.example.com (as long as the record type for www.example.com is not of type CNAME).
Note: this method can be used only to redirect resources that are valid alias targets (ALB, CLoudFront, Etc)
If not, you can use a combination of Route53 and S3 to do the redirect. See this blog post: https://aws.amazon.com/premiumsupport/knowledge-center/redirect-domain-route-53/
Relevant content
- asked 5 years ago
- asked 8 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 10 months ago