This PR replaces the previous branch and fixes the redirect filter implementation. The old URL-Redirect-Filter branch had issues. #41
Requirements
Support a configurable list of redirect rules, each containing:
sourcePath (string or regex)
targetUrl
statusCode (301 or 302)
When a request matches a rule:
Stop the pipeline
Return a redirect response with the correct Location header
Ensure rules are evaluated in order
Log each redirect for debugging
Add tests for:
301 redirect
302 redirect
No matching rule
Regex or wildcard matching (if implemented)
Examples
/old-page → /new-page (301)
/temp → https://example.com/temporary (302)
/docs/* → /documentation/ (301, wildcard)
This PR replaces the previous branch and fixes the redirect filter implementation. The old URL-Redirect-Filter branch had issues. #41
Requirements
Support a configurable list of redirect rules, each containing:
sourcePath (string or regex)
targetUrl
statusCode (301 or 302)
When a request matches a rule:
Stop the pipeline
Return a redirect response with the correct Location header
Ensure rules are evaluated in order
Log each redirect for debugging
Add tests for:
301 redirect
302 redirect
No matching rule
Regex or wildcard matching (if implemented)
Examples
/old-page → /new-page (301)
/temp → https://example.com/temporary (302)
/docs/* → /documentation/ (301, wildcard)