So I have a domain whose nameservers are pointed to AWS Route 53. My site is hosted on an EC2 instance and is reachable but only resolves to site.com, even if you input www.site.com. I'm curious how to get the site to resolve to www.site.com. I have under Route53 for my domains hosted zone 2 additional record sets outside of NS and SOA:
A site.com EC2 Elastic IP
CNAME www.site.com EC2 public DNS
I can reach the site using both site.com and www.site.com, but it will always resolve as site.com. Is there a way to make it so that if I enter either, it resolves to www.site.com?