Hi!
I'm working on moving my site off an apache host onto lighttpd, but I
cannot get the .htaccess file to work. I learned I have to put it in my
lighttpd.conf file, under the specific host entry which I setup and have
working (used for a virtual host kinda thing).
How would I convert this .htaccess file into lighttpd.conf code that I
can place under the host entry for the server?
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /rewrite.php [L]
Any help would be greatly appreciated!
Thanks,
Brian
on 28.08.2007 02:00
on 12.09.2007 20:21
Brian Michalski wrote: > Hi! > > I'm working on moving my site off an apache host onto lighttpd, but I > cannot get the .htaccess file to work. I learned I have to put it in my > lighttpd.conf file, under the specific host entry which I setup and have > working (used for a virtual host kinda thing). > > How would I convert this .htaccess file into lighttpd.conf code that I > can place under the host entry for the server? > > RewriteEngine On > RewriteBase / > RewriteCond %{REQUEST_FILENAME} !-f > RewriteCond %{REQUEST_FILENAME} !-d > RewriteRule . /rewrite.php [L] > > > Any help would be greatly appreciated! > > Thanks, > Brian As far as I know, Lighttpd does not support the -f / -d options that mod_rewrite does. However the rest of the rule is pretty simple - but I would think its a bad idea (as you obviously don't want static content being rewritten to rewrite.php. Solution would be to write a more specific rule (rather than . ) - this would help.

