mirror of
https://github.com/caddyserver/website.git
synced 2025-05-06 19:57:13 -04:00
Update rewrite.md
it will be error if use the example error parsing regexp: missing argument to repetition operator: `*`
This commit is contained in:
parent
cae970833f
commit
379d404be0
1 changed files with 1 additions and 1 deletions
|
@ -25,7 +25,7 @@ rewrite [<matcher>] <to>
|
|||
Rewrite all requests to `foo.html`, leaving any query string unchanged:
|
||||
|
||||
```caddy-d
|
||||
rewrite * /foo.html
|
||||
rewrite .* /foo.html
|
||||
```
|
||||
|
||||
Replace the query string on API requests with `a=b`, leaving the path unchanged:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue