Project

General

Profile

lighttpd rewrite error url dot problem.

Added by nhantam over 12 years ago

My application using Codeigniter
server: CentOS
Lighttpd: 1.4
PHP: 5.3

My rewrite


$HTTP["host"] =~ "^(www\.)?mydomain.net$" {
        server.document-root = "/var/www/lighttpd/my_app" 
        server.error-handler-404 = "/index.php" 
        url.rewrite-once = (
                "/(.*)\.(.*)" => "$0",
                "/(css|files|img|js|stats)/" => "$0",
                "([^.*]+)$" => "/index.php/$1/" 
        )
}

url: http://www.mydomain.net/test/view //work OK
url: http://www.mydomain.net/test/view?target=123&email=test@yahoo.com //not work

but

$HTTP["host"] =~ "^(www\.)?mydomain.net$" {
        server.document-root = "/var/www/lighttpd/my_app" 
        server.error-handler-404 = "/index.php" 
        url.rewrite-once = (

                "/(css|files|img|js|stats)/" => "$0",
                "([^.*]+)\.([^.*]+)$" => "/index.php/$1.$2",
                "([^.*]+)$" => "/index.php/$1/" 
        )
}

delete ## "/(.*)\.(.*)" => "$0",

url: http://www.mydomain.net/test/view //work OK, but css forbidden (css not work)
url: http://www.mydomain.net/test/view?target=123&email=test@yahoo*.*com //work OK, but css forbidden (css not work)

Could you help me ? lighttpd url rewrite param dot ?