Skip to content

Root domain redirection is not working on AWS Amplify with a custom domain.

0

"https://www.example.com" works fine.

In custom domain settings, "Setup redirect from https://example.com to https://www.example.com" is selected.

The domain is managed by Route 53, CNAME record added for "www.example.com" and A record alias added for "example.com".

Domain Status Domain Configuration

When i hit "https://example.com", i get this page This site can’t provide a secure connection But

When i hit "http://example.com", i get this page Cloudfront Error

https://stackoverflow.com/questions/63178730/aws-s3-redirect-for-route53-not-working-for-https/67222388#67222388

As detailed in this answer, there are multiple configurations involved. Amplify is supposed to take care of the first 3 steps. I have the 4th step in place.

What am i missing?

2 Answers
1
Accepted Answer

Had to include Root domain as well in Amplify domain management. Working fine now. Domain Management

answered a year ago
EXPERT
reviewed a year ago
EXPERT
reviewed a year ago
0

as of 20 May 2025 I still can't get this to work like you did, I have both root domain and subdomain (www) added but redirection from https://example.com to https://www.example.com doesn't work

answered 9 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.