如何将此Apache重写规则转换为lighttpd规则?
RewriteEngine on
RewriteCond $1 !^(index\.php|public|\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?$1
答案 0 :(得分:1)
我认为这将起作用。
url.rewrite-once = (
".*\?(.*)$" => "/index.php?$1",
".*\.(?i)(js|ico|gif|jpg|png|swf|css|html)$" => "$0",
"" => "/index.php")