Open strangehelix opened 1 year ago
d2onlp7qsnn3r1
us-west-2
Redirects
React
N/A
Rewrite rules don't work when source URLs point to a file without an extension.
EXAMPLE:
This will not work
source: /.well-known/apple-developer-merchantid-domain-association target: /apple-developer-merchantid-domain-association.json Error: HTTP 403
This will work
source: /.well-known/apple-developer-merchantid-domain-association.json target: /apple-developer-merchantid-domain-association.json
This should have worked source: /.well-known/apple-developer-merchantid-domain-association target: /apple-developer-merchantid-domain-association.json
and content of apple-developer-merchantid-domain-association.json should be served.
In Amplify App Settings:
No response
Also having issues with this. Trying to use rewrites on my "/" page to go to "/site/index.html" and it 404s. This used to work a month or two ago, but some change in Amplify has broken it.
Before opening, please confirm:
App Id
d2onlp7qsnn3r1
AWS Region
us-west-2
Amplify Hosting feature
Redirects
Frontend framework
React
Next.js version
N/A
Next.js router
N/A
Describe the bug
Rewrite rules don't work when source URLs point to a file without an extension.
EXAMPLE:
This will not work
source: /.well-known/apple-developer-merchantid-domain-association target: /apple-developer-merchantid-domain-association.json Error: HTTP 403
This will work
source: /.well-known/apple-developer-merchantid-domain-association.json target: /apple-developer-merchantid-domain-association.json
Expected behavior
This should have worked source: /.well-known/apple-developer-merchantid-domain-association target: /apple-developer-merchantid-domain-association.json
and content of apple-developer-merchantid-domain-association.json should be served.
Reproduction steps
In Amplify App Settings:
Build Settings
No response
Log output
Additional information
No response