将 apache 重写规则转换为 lighttpd 规则

Convert apache rewrite rules to lighttpd rules

如何将此 Apache 重写规则转换为 lighttpd 规则?

RewriteEngine on
RewriteCond  !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?

我觉得这个可以。

url.rewrite-once = (
".*\?(.*)$" => "/index.php?",
".*\.(?i)(js|ico|gif|jpg|png|swf|css|html)$" => "[=10=]",
"" => "/index.php")