Welcome Guest, Not a member yet? Register   Sign In
lighttpd rewrite with url suffix
#1

[eluser]Unknown[/eluser]
Hello, i moved to lighttpd and can't seem to make my pages work, the rewrite for index.php works ok, i can access my controllers with my methods fine, but when i try to use the url suffix .html i get a 404 from the server and that tells me that it doesn't go through the index.php.

http://www.mysite.com/index.php/download/start - works
http://www.mysite.com/index.php/download/start.html - works
http://www.mysite.com/download/start - works
http://www.mysite.com/download/start.html - 404 from lighttpd

This is my url.rewrite-once setting.

Code:
url.rewrite-once = (
"/(.*)\.(.*)" => "$0",
"/(assets|pma|robots\.txt)/" => "$0",
"/^(.*)\.html$" => "/index.php/$1",
"^/([^.]+)$" => "/index.php/$1"
)




Theme © iAndrew 2016 - Forum software by © MyBB