RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d   
RewriteRule !\.(js|ico|gif|jpg|png|css)$ /index.php

This is Zend htaccess, I can't seem to find a lighttpd equivalent of this..

Thanks, D

link|improve this question

feedback

2 Answers

up vote 1 down vote accepted

I'm pasting the solution we found and the url were we found it, in case we need it in the future and for the benefit of other people reading this post.

So this is a neat trick that does work on the lighttpd rewrite system.

url.rewrite-once = (
    ".*\?(.*)$" => "/index.php?$1",
    ".*\.(js|ico|gif|jpg|png|swf|css|html)$" => "$0",
    "" => "/index.php"
)

http://smartycode.com/performance/zend-framework-application-lighten-the-load-server/

link|improve this answer
yet we haven't found the solution for first two lines RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d – Devrim Sep 13 '09 at 15:53
oh the following solves the problem for us, doesn't it? url.rewrite = ( "^/(.*)\.(.+)$" => "$0", "^/(.+)/?$" => "/index.php/$1" ) courtesy of: guyrutenberg.com/2008/05/24/… – A4A Sep 14 '09 at 16:15
nope :) unfortunately it doesn't – Devrim Sep 14 '09 at 23:10
feedback

yet we haven't found the solution for first two lines RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d

lighty has no solution for it and it seems there won't be any

review http://redmine.lighttpd.net/issues/985

there is a patch

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.