1 Answer
- Newest
- Most votes
- Most comments
0
Hi Owain, thanks for asking this question! To address your points:
- The Rewrites and redirects settings apply to all branches configured within an app at the moment. Have you considered hosting two Amplify Apps in your account to be able to configure these separately? You can consider opening a Feature Request against the amplify-hosting project or commenting one of the existing issues about geo restriction like this one.
- While there is no
NOT
operator for the list of countries, you can specify a list of alternatives as a condition of a rule - please see the example below. Again, you can consider opening a feature request in the same repo to add this kind of syntax to the rewriting engine to help Amplify team prioritise their work.
[
{
"source": "/<*>",
"target": "/error.html",
"status": "200",
"condition": "<IN>|<AE>|<DE>|<HK>" [add all countries except US]
}
]
Amplify Hosting is a fully managed service, so you don't get access to the underlying CloudFront distribution.
answered a year ago
Relevant content
- asked 7 months ago
- asked 2 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated 5 months ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago