documented the changes in mod_rewrite

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.3.x@497 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/heads/lighttpd-1.3.x
Jan Kneschke 18 years ago
parent c11f816204
commit e82d062eae

@ -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" )

Loading…
Cancel
Save