lighttpd forum migration > Apache rewrite-rule -> lighttpd rewrite rule

Posted by Kevin Häfeli (Guest)
on 28.01.2008 18:31
hi..

can someone help me to convert my apache rewrite rule to a working 
lighttpd rewrite rule?

RewriteEngine on
RewriteBase /

RewriteCond %{HTTP_HOST} !^www\.blah\.info$
RewriteRule ^(.*)$ http://www.blah.info/$1 [L,R=301]

RewriteRule ^index.html$ index.php
RewriteRule ^newfile/([^/]*).html$ newfile.php?hash=$1
RewriteRule ^file/([^/]*).html$ selectfile.php?hash=$1
RewriteRule ^files/([^/]*).html$ selectfile.php?hash=$1
RewriteRule ^download/([^/]*).html$ downloadfile.php?hash=$1

thanks!