aws-amplify / aws-amplify/amplify-hosting
How to properly redirect using regex
- Dominant language
- Dockerfile
- Stars
- 481
- Forks
- 123
- PR merge metrics
- No merged PRs in 30d
Description
** Please describe which feature you have a question about? **
I'm trying to redirect `/<3-digit-integer>` to `/code/` but for some reason I can't get it working. What I tried so far (I wasn't sure about the exact syntax):
```
/<[0-9]{3}> to /code/<*>
/ to /code/<*>
/<^[0-9]{3}$> to /code/<*>
/ to /code/<*>
```
Can someone please take a look and tell me if I'm missing anything here. Thanks.
Contributor guide
Research direction
No files or tests are named. Start by locating the Amplify Hosting redirect configuration and its regex documentation, then compare the requested three-digit path capture with the supported syntax. Done means documenting a reproducible redirect from /<3-digit-integer> to /code/.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- aws
- Domain
- cloud
- Issue type
- Documentation
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100