Wed 24 May 2006
After a bit of searching around and failure and trial, I finally got it working.
The key point is that rewrite rules in lighttpd does not work under $HTTP["url"], so this is what I got working finally:
url.rewrite-once = ( "^/ez38/.*\.(css|html|htm|pdf|js|png|gif|jpe?g|ico)(\?.*)?" => "$0", "^/ez38/.*" => "/ez38/index.php" )
Note: the ez publish is installed under /ez38/ of the document root, and you may want to change it. If you install ez under your root, just replace "/ez38/" with "/".
if you want to use SJSD with lighttpd, then you should have something like this:
url.rewrite-once = ( "^/ez38/.*\.(css|html|htm|pdf|js|png|gif|jpe?g|ico|xml)(\?.*)?" => "$0", "^/ez38/.*" => "/ez38/index.php" )
UPDATE (29/May/2006): *.ico should not be rewriten to index.php
RSS feed for comments on this post. TrackBack this post
January 11th, 2009 at 2:18 am
Hi there,
it’s a bit late to give a comment on that topic, but I’ve encoutnered a bug in that rewrite config, which should be reported
The line:
“^/ez38/.*\.(css|html|htm|pdf|js|png|gif|jpe?g|ico)(\?.*)?” => “$0″,
also omits PDF files from rewriting. the problem comes up, if you try to offer pdf files for download. Those links end up in a 404, as they are not redirected to the frontcontroller. Just remove the |pdf| part from the rewrite rule to fix that.
Regards,
Mario
January 11th, 2009 at 2:36 am
[...] Allgemeinen findet man eine Menge an Seiten, die die Konfigurationen für die Rewrites anbieten. Leider haben alle, die ich bis jetzt fand [...]