Update rewrite.md

it will be error if use the example
error parsing regexp: missing argument to repetition operator: `*`
This commit is contained in:
dinosaur 2023-02-19 21:30:36 +08:00 committed by GitHub
parent cae970833f
commit 379d404be0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: