2015-09-10 102 views
0

请帮助我,请以下面的htaccess转换为lighttpd的重写规则请帮助转换apache的重写规则

RewriteEngine On 
RewriteRule ^images/.*$ index.php 
RewriteCond %{REQUEST_URI} !(^/_)|(error\.html)$ [NC] 
RewriteRule ^.*$ index.php 

我从来没有被使用lighttpd的工作,但我需要的lighttpd服务器上启动脚本。 而我需要放置这个规则来使脚本工作。

回答

1

该解决:

#/mnt/sdcard/pws/rewrite.conf 

# rewrite rules 
url.rewrite-if-not-file += (
    "^images/.*$" => "index.php", 
    "^([^\?]+)(?:\?(.*))$" => "index.php?_route_=$1&$2", 
    "^.*$" => "index.php" 
) 
# //rewrite rules