Lighttpd重写规则

Lighttpd重写规则

为什么这样的重写规则不起作用:

url.rewrite-if-not-file = (
    "^parameter/(.*)$" => "/somefunnyfile.php?someparameter=$1"
)

...但是这样的规则确实有效:

url.rewrite-if-not-file = (
    "^/(.*)$" => "/somefunnyfile.php?someparameter=$1"
)

这是模拟的 Apache RewriteRule

RewriteRule ^acraproxyphp/(.*)$ acraproxy.php?reportid=$1

相关内容