jape
jape

Reputation: 2901

Use www.domain.com and domain.com with EC2 and Route53

I have the following Route53 settings:

enter image description here

My CNAME allows users to type www.obystudio.com which is pointed at my Elastic Load Balancer.

Whenever I try to create a second CNAME so users can type obystudio.com and it will redirect to www.obystudio.com, I get an error saying I can't use obystudio.com in the same apex.

Does anyone know a solution to use that will allow users to type either www.obystudio.com or obystudio.com and have them both work?

Thank you in advance!

Upvotes: 0

Views: 776

Answers (1)

Mark B
Mark B

Reputation: 200501

obystudio.com is a root domain name. You can't use a CNAME record for that, you have to use an A record.

There are instructions here for pointing an A record to an Elastic Load Balancer.

Also, don't try pointing one domain to another. Point them both directly to the Elastic Load Balancer.

Upvotes: 2

Related Questions