我有以下.htaccess:
RewriteEngine On
RewriteRule ^([^/]*)\.html /$1.php
RewriteRule ^scss/([^/]*)\.css$ /showcss.php?css=$1 [L]如何将其转换为lighttpd?
发布于 2011-11-23 04:19:13
请参阅Migrating from Apache的lighttpd教程。apache到lighttpd的重写规则之间没有很好的一对一映射,但这应该是非常简单的。看看这是否适用于您(可能需要对正则表达式进行一些调整):
url.rewrite-once = ( "^/([^/]*)\.html" => "/$1.php",
"^/scss/([^/]*)\.css$" => "/showcss.php?css=$1")https://stackoverflow.com/questions/8232738
复制相似问题