Project

General

Profile

Mod redirect » History » Revision 3

Revision 2 (Anonymous, 2006-08-11 21:16) → Revision 3/35 (Anonymous, 2006-08-17 12:54)

{{{ 
 #!rst 
 =============== 
 URL Redirection 
 =============== 

 -------------------- 
 Module: mod_redirect 
 -------------------- 

 .. meta:: 
   :keywords: lighttpd, redirect 
  
 .. contents:: Table of Contents 

 Description 
 =========== 

 The redirect module is used to specify redirects for a set of URLs. 

 Options 
 ======= 

 url.redirect 
   redirects a set of URLs externally 
  
   e.g. :: 
  
     url.redirect = ( "^/show/([0-9]+)/([0-9]+)$" => "http://www.example.org/show.php?isdn=$1&page$2", 
                      "^/get/([0-9]+)/([0-9]+)$"    => "http://www.example.org/get.php?isdn=$1&page$2" ) 

     # make an external redirect 
     # from any www.host (with www.) to the host (without www.) 
     $HTTP["host"] =~ "^www\.(.*)$" "^www\.(.*)" { 
       url.redirect = ( "^/(.*)" => "http://%1/$1" ) 
     } 
 }}}