2013-03-25 92 views
0

如何用lighttpd描述同樣的事情?mod_rewrite從apache遷移到lighttpd

我的.htaccess:

RewriteEngine On 
RewriteBase/
RewriteCond $1 !^(index\.php|style\.css|image|image-small|robots\.txt|sitemap\.xml|favicon\.ico) 
RewriteRule ^(.*) index.php [L] 

回答

0

未測試:

server.modules = (
    "mod_rewrite" 
) 

$HTTP["host"] == "web.com" { 

    server.document-root = "/var/www/web.com/public_html/" 

    url.rewrite-once = ( 
     "^(?!index\.php|style\.css|image|image-small|robots\.txt|sitemap\.xml|favicon\.ico)" => "$0" 
     "^(.*)" => "index.php" 
    ) 

} 

更多信息here