summaryrefslogtreecommitdiff
path: root/doc/redirect.txt
blob: ab4e7a8328839cacf903b7faca84e822371dafb4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
===============
URL Redirection
===============

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

:Author: Jan Kneschke
:Date: $Date: 2005-03-28T08:30:05.699628Z $
:Revision: $Revision: 227 $

:abstract:
  url redirection
  
.. meta::
  :keywords: lighttpd, redirect
  
.. contents:: Table of Contents

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

...

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 a external redirect
    # from any www.host (with www.) to the host (without www.)
    $HTTP["host"] =~ "^www\.(.*)" {
      url.redirect = ( "^/(.*)" => "http://%1/$1" )
    }