Redirects and rewrites are basically the same thing
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Start by locating the existing redirect and rewrite configuration, data structures, and implementation paths, then compare how host matching and internal redirects are handled. Done means redirects can be represented through rewrites with an optional host, existing redirect configuration remains backwards-compatible, and behavior is covered across all targets.
Written by the indexing model from the issue text.
Description
Search for duplicate feature request
- I already searched, and this feature request or improvement is not a duplicate.
Feature scope
Improve existing functionality
Feature request related to a problem
Initially I didn’t recognize the difference between redirects and rewrites, and they are in fact almost identical. It seems that there are only two differences: redirects can be tied to a host name whereas as rewrites cannot, and rewrites support internal redirects whereas redirects don’t. It shouldn’t be too hard to merge both features and remove the confusion.
Describe the solution you'd like
Adding an optional host field to rewrites will be backwards-compatible and render redirects superfluous. The redirects configuration options can stay for backwards compatibility but be rendered into Rewrites data structure. This will get rid of the confusion around these features and code duplication.
Describe alternatives you've considered
Things can stay as they are now of course. Internal redirects will have to affect all hosts then.
Build target
All targets
Additional context
No response
- Dominant language
- Rust
- Stars
- 2.4k
- Forks
- 130
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from static-web-server/static-web-server
-
documentation enhancement help wanted release v2
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
static-web-server/static-web-server#711 · 3 comments ·
-
enhancement help wanted
Difficulty 3/5 1-2 days Newbie friendliness 68/100
-
enhancement help wanted v3
Difficulty 4/5 3-5 days Newbie friendliness 45/100
static-web-server/static-web-server#735 · 3 comments ·
-
enhancement help wanted v2
Difficulty 3/5 1-2 days Newbie friendliness 65/100
-
enhancement help wanted v3
Difficulty 3/5 1-2 days Newbie friendliness 64/100
All issues in static-web-server/static-web-server
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
kwakseongjae/auto-hwp#319 ·
-
area:cli bug filter-quality good first issue priority:medium
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
bevyengine/bevy#25861 ·
-
comp-datalake
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
ClickHouse/ClickHouse#121222 ·
-
enhancement remote
Difficulty 2/5 1-3 hours Newbie friendliness 68/100