aws-amplify / aws-amplify/amplify-hosting

How to properly redirect using regex

Open
#816 17 comments 1 reaction 0 assignees View on GitHub
question redirects
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

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.