Open Amazon CloudFront console. Then click Create distribution
Select the origin domain is fcj-book-shop bucket
Select Legacy access identities to just allow access to the S3 bucket from CloudFront
Click Create new OAI
Click Create
Select OAI you just created
Select Yes, update the bucket policy
Scroll down, in Default cache behavior section, select Redirect HTTP to HTTPS for Viewer protocol policy
Scroll down, in Settings section, click Add item
www.fcjbookshop.click
and fcjbookshop.click
Scroll down to bottom, enter index.html for Default root object pattern
Go back to the Route 53 console
Enter www
for Record name
The record have created
Enter the following links in a new tab in your web browser: http://DOMAIN
, http://www.DOMAIN
, replace all DOMAIN with your domain name. All those links redirect to the new path, replace http with https