1
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

2 Answers 2

2

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/

3
  • yet we haven't found the solution for first two lines RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d
    – Devrim
    Sep 13, 2009 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, 2009 at 16:15
  • nope :) unfortunately it doesn't
    – Devrim
    Sep 14, 2009 at 23:10
1

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .