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

时间:2018-11-25 20:55:22

标签: 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

1 个答案:

答案 0 :(得分:1)

我认为这将起作用。

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