Enabling "Pretty URLs" on Lighttpd-based c5
PermalinkAfter several dead-ends in researching the issue, I think I've got it. For reference, I'm using:
url.rewrite = ( "^/(.+)/?$" => "/index.php/$1" )
It works so far. Still, I'd be curious (and very appreciative) to hear from anyone who sees potential problems with it. Thanks.
Anyone have an idea about how to translate those Apache "RewriteCond" conditions provided by c5 for lighttpd?
If I can't hang on to lighttpd, I guess it's OK. The SEO/usability aspect of this site is more important.
Thanks.
url.rewrite = ( "^/([^.?]*)$" => "/index.php/$1" )
Working at all 100%. :>
Then in your lighttpd config:
server.error-handler-404 = "/index.php"
Pretty easy and much less mess to sort out.
like: /files/mypicture.jpg
there should be a condition imho. lighttpd might do this somewhere else, but if not, you should probably add it..