2015-09-10 42 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