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

将apache重写规则转换为lighttpd规则,apache,mod-rewrite,lighttpd,Apache,Mod Rewrite,Lighttpd,如何将此Apache重写规则转换为lighttpd规则 RewriteEngine on RewriteCond $1 !^(index\.php|public|\.txt) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php?$1 我想这个会有用的 url.rewrite-once = ( ".*\?(.*)$" => "/index.p

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

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

我想这个会有用的

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