0

How can I redirect my alpha.example.com subdomain to -> dev.example.com subdomain in AWS route 53?

I think to do it that way but I am not sure if this will work, so if you can help me :)

  1. Entering in the hosted zone example.com
  2. Choosing the CNAME of the alpha.example.com, Edit Record
  3. Activating "Alias" option
  4. "Route traffic to", Choose endpoint: "Alias to another record in this hosted zone", Choose record "dev.example.com", Routing policy "simple routing".
  5. Save

Is this enough to do the redirect? My point is when they open the alpha.example.com to redirect them to the subdomain dev.example.com

Tim
  • 33,870
  • 7
  • 56
  • 84
AZAZEL
  • 9

1 Answers1

1

I don't think redirects can be done in Route53. Alias records are not for redirection. You will need to use something at layer 7 - i.e. an http(s) redirect or similar.

I typed your question into Google and got advice from AWS Repost. In short, the best option may be to create an S3 bucket and set it up to do a redirect, as documented here.

S3 bucket with web hosting and a redirect is an easy way to do this, without having to run a web server.

Tim
  • 33,870
  • 7
  • 56
  • 84