How to redirect a root (apex) domain to another domain with Route53 | AWS Quick tips #1

preview_player
Показать описание
When you need to redirect the root (or apex) domain to another domain with Route53 then you don't have too many options. You can't directly use the A record because it only allows using IP addresses or aliases to AWS resources. The CNAME only allows subdomains.

But you can use a neat little trick that allows you to use an A record with an Alias to redirect to another domain, even if that domain is outside of your AWS infrastructure. Check out the video to see how to do it.

Рекомендации по теме
Комментарии
Автор

Thank you for this video! This was the only way I could get the apex domain redirect to work and it is totally appreciated!

austinisakson
Автор

It actually helped me to understand zone apex and alias and cname difference and how to use.

manoj
Автор

short and clear explanation. Thank you!

yuriyshevchenko
Автор

I followed the exact same steps but it is not working. Any idea of a blocker?

arashboustani
Автор

Works like a charm! Thank you very much

stillsmart
Автор

Thanks for that post. What if I want to redirect to 2 different domains based on GEOLocation? Do I create 2 buckets for each domain and then after 2 A records?

dnugtbb
Автор

which is cost effective, using s3 or lambda function + api gateway?

rpatil
Автор

it doesn't Work for me, im trying to redirect my hosting from route 53 to another url domain in an external hosting and it doesnt work, any idea?

floresjose
Автор

Hey I am looking for domain redirection but here in my case both are subdomains and its not working as guided by you.. Can you assist me plss.. Thanks

rajnishsagar
Автор

Thanks for that, but where is the site hosted as I have not seen you adding html etc files to S3 bucket you created, you just enabled the redirect.

derekmab
Автор

Can you please help me out. I'm trying to select the bucket, and the last parameter where i need to chose a resource, its blank. I cant choose the bucket i just created. I have followed every step, and i'm sure that region is correct

nauticaorangewatchbg
Автор

How do I route domains prefixed with "www"?

Kaminsk
Автор

is there updated method in 2023? no CNAME on root/apex domain is really inconvenient sometimes

ethaniel
Автор

well I don't know where you hosting your apex cloud website but I am trying to redirect my domain to a random URL and this way doesn't seem to be working for me

Paul-AWS