Project

General

Profile

Lighttpd rewrite rule working for 1.4.x, but not for 1.5

Added by marek over 8 years ago

It's working fine in lighttpd 1.4.x, but when I switch to 1.5.x it displays Internal Server Error. Any ideas ?

 url.rewrite-once = ("^(.*)/strony/([^a-zA-Z][0-9_/]*$)" => "$1.php?strony=$2",
                                "^(.*)/strony/([0-9_/]*)/(.*)" => "$3",
                                "^(.*)/strony/(.*)" => "$2",
                                "^(.*)/tagi/([Ä~XÃ~SÅ~AÅ~ZÄ~DŻŹÄ~FÅ~CÄ~YóÄ~EÅ~[Å~BżźÄ~GÅ~Da-zA-Z %0-9]*)/([^a-zA-Z][0-9_/]*$)" => "/tagi/wyswietlacz.php?tag=$2&page=$3",
                                "^(.*)/tagi/([Ä~XÃ~SÅ~AÅ~ZÄ~DŻŹÄ~FÅ~CÄ~YóÄ~EÅ~[Å~BżźÄ~GÅ~Da-zA-Z %0-9]+)/{0,1}$" => "/tagi/wyswietlacz.php?tag=$2",
                                "^(.*)/news/([0-9]*)/([0-9]*)/([^a-zA-Z][0-9]*)/(.*).html$" => "kom.php?id_b=$2&id_n=$3&kom_page=$4",
                                "^(.*)/news/([0-9]*)/([0-9]*)/(.*).html$" => "kom.php?id_b=$2&id_n=$3",
                                "^(.*)/news/([0-9]*)/([0-9]*)/([^a-zA-Z][0-9]*)/(.*)" => "$5",
                                "^(.*)/news/([0-9]*)/([0-9]*)/(.*)" => "$4",
                                "^(.*)/page/([^a-zA-Z][0-9_/]*$)" => "$1.php?strony=$2",
                                "^(.*)/page/([0-9_/]*)/(.*)" => "$3",
                                "^(.*)/page/(.*)" => "$2",
                                "^(.*)/tags/([Ä~XÃ~SÅ~AÅ~ZÄ~DŻŹÄ~FÅ~CÄ~YóÄ~EÅ~[Å~BżźÄ~GÅ~Da-zA-Z %0-9]*)/([^a-zA-Z][0-9_/]*$)" => "/tags/wyswietlacz.php?tag=$2&page=$3",
                                "^(.*)/tags/([Ä~XÃ~SÅ~AÅ~ZÄ~DŻŹÄ~FÅ~CÄ~YóÄ~EÅ~[Å~BżźÄ~GÅ~Da-zA-Z %0-9]+)/{0,1}$" => "/tags/wyswietlacz.php?tag=$2",
                                )

    (1-1/1)