我正在尝试从https://test.mysite.com.br/api/index.php/get/0/32342543删除index.php但没有成功。
我试过了:
url.rewrite-once = (
"^/(test)(.*)” => “/$1$2",
"^/(.*)$” => “/index.php/$1"
)
还有:
url.rewrite = (
"^/(.*)\.(.+)$" => "$0",
"^/(.+)/?$" => "/api/index.php/$1"
)
但两者都没有用。 url.rewrite的正确语法是什么?
答案 0 :(得分:0)
启用lighttpd模块" mod_rewrite"在/etc/lighttpd/lighttpd.conf