Project

General

Profile

how to get .htaccess files to work with lighthttpd

Added by elstinky almost 15 years ago

Well the question quite says it all, i have a video script that uses .htaccess however i migrated my apache server to lighthttpd but noticed that it wasnt reading the .htaccess file...so i did some searching and found lighthttpd doesnt support apache writen .htaccess files. i tried to look for a tutorial or a converter but havnt had much luck. also enabeld all the mods in lighthttpd with good hope it would work but with little luck :(
hope someone can help me or point me on how to make it work or change it? if u need to have the .htaccess file thats no problem either.

Btw here is an example rule:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^browse/videos/(.*)/(.*)/(.*)/(.*) /videos.php?sortby=$1&filter=$2&page=$3&title=$4

saw that in an other forum someone said in an other example make it like
RewriteRule ^/browse/videos/(.*)/(.*)/(.*)/(.*) /videos.php?sortby=$1&filter=$2&page=$3&title=$4

King regards,
elstinky.


Replies (2)

RE: how to get .htaccess files to work with lighthttpd - Added by skelkingur almost 15 years ago

There is mod_rewrite which supports url rewriting with regular expressions.

http://redmine.lighttpd.net/projects/lighttpd/wiki/Docs:ModRewrite

Regards,
skelkingur

RE: how to get .htaccess files to work with lighthttpd - Added by elstinky almost 15 years ago

gonna give it a shot, quite new to it all still but a good way to learn :)
thanks for the reply skelkingur

regards,
Elstinky

    (1-2/2)