4

I've been reading this Cloudfront redirect www to naked domain with ssl as well as other guides.

I need to point all variations of http and www into https://example.com.

I've setup both example.com and www.example.com S3 buckets and CloudFront distributions with the redirect, but I think I am stumped on how to redirect the root domain to my CloudFront distribution. I'm on Google Domains.

My root CloudFront:

enter image description here enter image description here

My www CloudFront:

enter image description here enter image description here

My root S3 bucket:

enter image description here

My www S3 bucket:

enter image description here

gruuuvy
  • 2,028
  • 4
  • 31
  • 52

1 Answers1

0

AWS Route53 supports root domain routing to a CloudFront distribution as documented here.

In summary, you:

  • add an A type DNS record to your Route53 HostedZone
  • select the alias checkbox next to the value input
  • select your CloudFront distribution from the dropdown value input field
Kurru
  • 14,180
  • 18
  • 64
  • 84