Skip to content

Commit

Permalink
Clarify the capture group processing doesn't affect excluded URLs
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Oct 2, 2023
1 parent 5751239 commit 666d0a0
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docs/redirect-rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,20 @@ The Capture Group Processing option allows you to specify how to process the tex
- Base64 Encode/Decode
- Replace Occurrences

Please note that this setting is for processing each captured group and it doesn't affect which URLs are excluded by the Excluded URL Patterns. For instance, let's say you have this rule:

- **Redirect From**: `https://example.com/(hello.*)`
- **Capture Group Process**: Replace `.*` with `hello` for `$1`
- **Excluded URL Pattern**: `https://example.com/hello`

In this case, `https://example.com/hello_world` will not be excluded while `https://example.com/hello` will be excluded.

### Excluded URL Patterns

The Excluded URL Patterns option allows you to specify the URLs that are not redirected. This can be useful to avoid redirect loops, or to exclude certain parts of a website from being redirected.

You can specify excluded URL patterns using either Regular Expression or Wildcard pattern types.

Please note that if there are conflicts between the excluded URL patterns and the redirect rules, the excluded URL pattern takes priority and the URL will not be redirected.

### Examples

The Examples option allows you to test your redirect rule by providing sample URLs. By adding a sample URL, you can check whether the rule works as expected before actually applying it.
Expand Down

0 comments on commit 666d0a0

Please sign in to comment.