Annotation of embedaddon/lighttpd/doc/outdated/redirect.txt, revision 1.1

1.1     ! misho       1: ===============
        !             2: URL Redirection
        !             3: ===============
        !             4: 
        !             5: --------------------
        !             6: Module: 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: 
        !            21: Description
        !            22: ===========
        !            23: 
        !            24: ...
        !            25: 
        !            26: Options
        !            27: =======
        !            28: 
        !            29: url.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: 
        !            43: Warning
        !            44: =======
        !            45: 
        !            46: Do NOT use mod_redirect to protect specific urls, as the original url passed from the client
        !            47: is matched against your rules, for example strings like "/abc/../xyz%2f/path".

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>