gg8280525 发表于 2009-9-24 16:54:43

谁知道lighttpd关于joomla的rewrite规则?

如题,谁知道,请发下,谢谢

cpuer 发表于 2009-9-24 17:13:36

lighttpd.conf 里面加入

$HTTP["url"] !~ "\.(gif|png|css|jpg|jpeg|js)$" {
   server.error-handler-404 = "/index.php"
}

试试,


或者另外一种:
url.rewrite-final = (
    "^/images,*$" => "$0",
    "^/templates.*$" => "$0",
    "^/administrator.*$" => "$0",
    "^/(.*\.php)" => "$0",,
    "^/(.*)" => "/index.php/$1"
)
页: [1]
查看完整版本: 谁知道lighttpd关于joomla的rewrite规则?