Need help converting apache .htaccess code to lighttpd url_rewrite code
Posted
by miCRoSCoPiC_eaRthLinG
on Stack Overflow
See other posts from Stack Overflow
or by miCRoSCoPiC_eaRthLinG
Published on 2009-05-26T04:28:05Z
Indexed on
2010/06/11
14:03 UTC
Read the original article
Hit count: 312
Hi All, I have this custom written CMS built on XAMPP. I'm trying to test the same on lighttpd to benchmark the so-called performance gains... but am stuck at the rewrite rules. I use the default rewrite rules of WordPress in my .htaccess which hands all url parsing over to my script as long as there aren't any files or directories same as the URL structure. Here's the code:
RewriteBase /somedir/
# Let the Script handle all pretty URLs
RewriteCond %{SCRIPT_FILENAME} !-d
RewriteCond %{SCRIPT_FILENAME} !-f
RewriteRule .* index.php [L]
Can anyone please help me translate the same to the lighttpd format? I could only (partially) figure out the last line myself going through the lighty docs ... i.e.
url.rewrite-once = ( ".*" => "index.php" )
But that of course won't suffice... All my CMS is doing is giving me 404's.
Thanks, miCRoSCoPiC^eaRthLinG
© Stack Overflow or respective owner