1=============== 2URL Redirection 3=============== 4 5-------------------- 6Module: mod_redirect 7-------------------- 8 9:Author: Jan Kneschke 10:Date: $Date: 2004/08/29 09:43:49 $ 11:Revision: $Revision: 1.1 $ 12 13:abstract: 14 url redirection 15 16.. meta:: 17 :keywords: lighttpd, redirect 18 19.. contents:: Table of Contents 20 21Description 22=========== 23 24... 25 26Options 27======= 28 29url.redirect 30 redirects a set of URLs externally 31 32 e.g. :: 33 34 url.redirect = ( "^/show/([0-9]+)/([0-9]+)$" => "http://www.example.org/show.php?isdn=$1&page$2", 35 "^/get/([0-9]+)/([0-9]+)$" => "http://www.example.org/get.php?isdn=$1&page$2" ) 36 37 # make a external redirect 38 # from any www.host (with www.) to the host (without www.) 39 $HTTP["host"] =~ "^www\.(.*)" { 40 url.redirect = ( "^/(.*)" => "http://%1/$1" ) 41 } 42 43Warning 44======= 45 46Do NOT use mod_redirect to protect specific urls, as the original url passed from the client 47is matched against your rules, for example strings like "/abc/../xyz%2f/path". 48