aws-amplify / aws-amplify/amplify-hosting
Bare domain forwarding not working
- Dominant language
- Dockerfile
- Stars
- 481
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
### Before opening, please confirm:
- [X] I have checked the [custom domains troubleshooting guide](https://docs.aws.amazon.com/amplify/latest/userguide/custom-domain-troubleshoot-guide.html).
- [X] I have read the guide for [submitting bug reports](https://github.com/aws-amplify/amplify-console/blob/master/CONTRIBUTING.md).
- [X] I have done my best to include a minimal, self-contained set of instructions for consistently reproducing the issue.
### App Id
arn:aws:amplify:us-east-2:584873075600:apps/dq0x0kfy2jfdx
### Region
_No response_
### Step
Domain forwarding
### Status
Not Working
### Issue or question
When I go to www.mydomainname.com the website works. However, using the bare domain, mydomainname.com does not.
Even though, in my redirects I have:
```
[
{
"source": "https://mydomainname.com",
"target": "https://www.mydomainname.com",
"status": "302",
"condition": null
},
{
"source": "/<*>",
"target": "/index.html",
"status": "404-200",
"condition": null
},
{
"source": "",
"target": "/index.html",
"status": "200",
"condition": null
}
]
```
So I am confused why it does not forward to the www. domain?
### Error message
_No response_
### Additional information
_No response_
Contributor guide
Research direction
Start with the custom domains troubleshooting guide and the reported redirect configuration for the Amplify app in us-east-2. Reproduce the difference between www.mydomainname.com and the bare domain, then verify that the bare domain forwards to the www domain as intended.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 20/100