mirror of
https://github.com/caddyserver/website.git
synced 2025-04-22 04:56:17 -04:00
docs: Escape < and > characters (#125)
This commit is contained in:
parent
e7b259b93d
commit
1019b7be50
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ Because `rewrite` essentially performs an internal redirect, the Caddyfile adapt
|
||||||
rewrite [<matcher>] <to>
|
rewrite [<matcher>] <to>
|
||||||
```
|
```
|
||||||
|
|
||||||
- **<to>** is the URI to set on the request. Only designated parts will be replaced. The URI path is any substring that comes before `?`. If `?` is omitted, then the whole token is considered to be the path.
|
- **<to>** is the URI to set on the request. Only designated parts will be replaced. The URI path is any substring that comes before `?`. If `?` is omitted, then the whole token is considered to be the path.
|
||||||
|
|
||||||
|
|
||||||
## Examples
|
## Examples
|
||||||
|
@ -52,4 +52,4 @@ rewrite * /index.php?{query}&p={path}
|
||||||
There are other directives that perform rewrites, but imply a different intent or do the rewrite without a complete replacement of the URI:
|
There are other directives that perform rewrites, but imply a different intent or do the rewrite without a complete replacement of the URI:
|
||||||
|
|
||||||
- [`uri`](uri) manipulates a URI (strip prefix, suffix, or substring replacement).
|
- [`uri`](uri) manipulates a URI (strip prefix, suffix, or substring replacement).
|
||||||
- [`try_files`](try_files) rewrites the request based on the existence of files.
|
- [`try_files`](try_files) rewrites the request based on the existence of files.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue