Correct README to indicate that redirects are not done using regular expressions but literal path matches.

This commit is contained in:
Solderpunk 2020-06-30 20:23:50 +02:00
parent 1794ff643b
commit 35f58f50e7
1 changed files with 6 additions and 5 deletions

View File

@ -206,11 +206,12 @@ directory listing:
### Redirects
* `TempRedirects`: In this section of the config file, keys are path
regexs and values are strings. If the path component of a received
request matches one of the regexs, Molly Brown will serve a redirect
to a modified URL using the value string as a path, using status
code 30.
* `TempRedirects`: In this section of the config file, keys and values
are both path strings. If the path component of a received request
matches one of the keys, Molly Brown will serve a redirect to the
corresponding value, using status code 30. Note that currently
redirects cannot be specified using regular exressions, only literal
path strings.
* `PermRedirects`: As per `TempRedirects` above, but Molly Brown will
use the 31 status code instead of 30.