mirror of
https://github.com/caddyserver/website.git
synced 2025-06-22 14:10:32 -04:00
Remove superfluous newline
This commit is contained in:
parent
725932fa1d
commit
f344dfb79f
1 changed files with 0 additions and 1 deletions
|
@ -84,7 +84,6 @@ route {
|
|||
|
||||
### Explanation
|
||||
|
||||
|
||||
- The first section deals with canonicalizing the request path. The goal is to ensure that requests that target a directory on disk actually have the trailing slash `/` added to the request path, so that only a single URL is valid for requests to that directory.
|
||||
|
||||
This is performed by using a request matcher that matches only requests that _don't_ end in a slash, and which map to a directory on disk which contains an `index.php` file, and if it matches, performs a HTTP 308 redirect with the trailing slash appended. So, for example it would redirect the request to path `/foo` to `/foo/` (appending a `/`, to canonicalize the path to the directory), if `/foo/index.php` exists on disk.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue