|
|
|
@ -26,17 +26,28 @@ internal redirects, url rewrite
|
|
|
|
|
Options
|
|
|
|
|
=======
|
|
|
|
|
|
|
|
|
|
url.rewrite
|
|
|
|
|
url.rewrite-once
|
|
|
|
|
rewrites a set of URLs interally in the webserver BEFORE they are handled.
|
|
|
|
|
|
|
|
|
|
e.g. ::
|
|
|
|
|
|
|
|
|
|
url.rewrite = ( "^/show/([0-9]+)/([0-9]+)$" => "/show.php?isdn=$1&page$2" )
|
|
|
|
|
url.rewrite-once = ( "<regex>" => "<relative-uri>" )
|
|
|
|
|
|
|
|
|
|
url.rewrite-final
|
|
|
|
|
url.rewrite-repeat
|
|
|
|
|
rewrites a set of URLs interally in the webserver BEFORE they are handled
|
|
|
|
|
and rewrite the urls in the second round
|
|
|
|
|
|
|
|
|
|
e.g. ::
|
|
|
|
|
|
|
|
|
|
url.rewrite-final = ( "^/get/([0-9]+)/([0-9]+)$" => "/get.php?isdn=$1&page$2" )
|
|
|
|
|
url.rewrite-repeat = ( "<regex>" => "<relative-uri>" )
|
|
|
|
|
|
|
|
|
|
The options ``url.rewrite`` and ``url.rewrite-final`` were mapped to ``url.rewrite-once``
|
|
|
|
|
in 1.3.16.
|
|
|
|
|
|
|
|
|
|
Examples
|
|
|
|
|
========
|
|
|
|
|
|
|
|
|
|
The regex is matching the full REQUEST_URI which is supplied by the user including
|
|
|
|
|
query-string.::
|
|
|
|
|
|
|
|
|
|
url.rewrite-once = ( "^/id/([0-9]+)$" => "/index.php?id=$1",
|
|
|
|
|
"^/link/([a-zA-Z]+)" => "/index.php?link=$1" )
|
|
|
|
|