I'm trying to get my naked URL to redirect to www subdomain.
The current website is up and running serving the content from an S3 bucket via cloudfront: https://www.gauntface.com
.
Now I'm trying to set up a redirect for http://gauntface.com
to https://www.gauntface.com
.
I've created a new S3 bucket with no contents but set up with static site hosting and redirects to https://www.gauntface.com. The URL provided by the S3 bucket works correctly and redirects.
I then tried setting up cloud front to serve content from this new bucket but I get an Access Denied
error. I'm getting the impression that cloudfront will access the S3 bucket via Rest API meaning it ignore the static site hosting configuration.
So next I'm trying to set up a custom domain to use the S3 bucket directly but so far my CNAME record in namecheap doesn't seem to work and I fear that it won't support SSL.
Can anyone point me in the right direction?