root/trunk/doc/redirect.txt

Revision 1349, 0.8 kB (checked in by darix, 2 years ago)

- merged lighttpd-merge-1.4.x so we finally work in trunk/ ! yeah \o/

  • Property svn:eol-style set to native
Line 
1===============
2URL Redirection
3===============
4
5--------------------
6Module: mod_redirect
7--------------------
8
9:Author: Jan Kneschke
10:Date: $Date: 2005-03-28T08:30:05.699628Z $
11:Revision: $Revision: 227 $
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    }
Note: See TracBrowser for help on using the browser.