By using AWS re:Post, you agree to the Terms of Use

Redirect domain old to new domain automatically


How i can assign my old domain to new domain automatically?, can anybody help me please?.

example case : (old)

My Goal : if someone access web, their will be assign to automatically.

3 Answers

If you are using an application load balancer, host-based routing is recommended.

profile picture
answered a month ago
  • Yesterday, I try for change rules on load balancer. And It work like you said, thank you for the hint :).


Another method would be to use s3 bucket redirection with Cloudfront, and an ACM certificate.

You need to setup an s3 bucket named "" (the website that you want to redirect to). to do that, create the bucket => go to properties => scroll all the way down to "static website hosting" => set static site hosting to enabled, hosting type to redirect requests for an object, hostname to "", protocol to none.

Create an ACM certificate for your domain. go to ACM => request a certificate, put in the FQDN of the website that you want to redirect to ( you will also need to validate the certificate

Create a cloudfront distribution. enter your origin (This will be the value that you get from s3 as the bucket website endpoint. ex:, change the viewer protocol policy to "Redirect HTTP to HTTPS", give an alternate CNAME record (,, choose your SSL certificate that you created in ACM, create distribution.

Go to your hosted zone in route 53, create an alias A record pointing to the cloudfront distribution that you created.

here are some resources that I find helpful:

answered a month ago

A simple Domain CNAME can accomplish this. A set up documentation from GoDaddy here. Respective DNS hosting Orgs/Domain Registrars will provided similar documentation.

answered a month ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions