请帮助转换 apache 重写规则
Please, help to convert apache rewrite rules
请帮助我将以下 htaccess 转换为 lighttpd 重写规则
RewriteEngine On
RewriteRule ^images/.*$ index.php
RewriteCond %{REQUEST_URI} !(^/_)|(error\.html)$ [NC]
RewriteRule ^.*$ index.php
我从未使用过 lighttpd,但我需要在 lighttpd 服务器上启动脚本。
以及我需要放置此规则以使脚本正常工作的位置。
由此解决:
#/mnt/sdcard/pws/rewrite.conf
# rewrite rules
url.rewrite-if-not-file += (
"^images/.*$" => "index.php",
"^([^\?]+)(?:\?(.*))$" => "index.php?_route_=&",
"^.*$" => "index.php"
)
# //rewrite rules
请帮助我将以下 htaccess 转换为 lighttpd 重写规则
RewriteEngine On
RewriteRule ^images/.*$ index.php
RewriteCond %{REQUEST_URI} !(^/_)|(error\.html)$ [NC]
RewriteRule ^.*$ index.php
我从未使用过 lighttpd,但我需要在 lighttpd 服务器上启动脚本。 以及我需要放置此规则以使脚本正常工作的位置。
由此解决:
#/mnt/sdcard/pws/rewrite.conf
# rewrite rules
url.rewrite-if-not-file += (
"^images/.*$" => "index.php",
"^([^\?]+)(?:\?(.*))$" => "index.php?_route_=&",
"^.*$" => "index.php"
)
# //rewrite rules