.htaccess Modrewrite到lighttpd

.htaccess Modrewrite到lighttpd,.htaccess,mod-rewrite,lighttpd,.htaccess,Mod Rewrite,Lighttpd,我拥有以下.htaccess权限: RewriteEngine On RewriteRule ^([^/]*)\.html /$1.php RewriteRule ^scss/([^/]*)\.css$ /showcss.php?css=$1 [L] 如何将其转换为lighttpd?有关详细信息,请参阅lighttpd教程。从apache到lighttpd的重写规则没有一个很好的1对1映射,但应该非常简单。看看这是否适合您(可能需要稍微调整正则表达式): url.rewrite-once =

我拥有以下.htaccess权限:

RewriteEngine On
RewriteRule ^([^/]*)\.html /$1.php
RewriteRule ^scss/([^/]*)\.css$ /showcss.php?css=$1 [L]

如何将其转换为lighttpd?

有关详细信息,请参阅lighttpd教程。从apache到lighttpd的重写规则没有一个很好的1对1映射,但应该非常简单。看看这是否适合您(可能需要稍微调整正则表达式):

url.rewrite-once = ( "^/([^/]*)\.html" => "/$1.php", 
                     "^/scss/([^/]*)\.css$" => "/showcss.php?css=$1")