[Solved] Please help me convert htaccess to lighttpd rewrite
Added by thanh858036 over 8 years ago
RewriteEngine On
RewriteRule ^download/([a-f0-9]{32})/(.+)$ down.php?file=$2&hashCode=$1
Replies (3)
RE: Plese help me convert htaccess to lighttpd rewrite - Added by nitrox over 8 years ago
Before you go on with that idea, how big are the downloads via php and have you considered x-sendfile?
RE: Plese help me convert htaccess to lighttpd rewrite - Added by thanh858036 over 8 years ago
nitrox wrote:
Before you go on with that idea, how big are the downloads via php and have you considered x-sendfile?
It working good with apache and i want to try with lighttpd but does not support htaccess
RE: [Solved] Please help me convert htaccess to lighttpd rewrite - Added by gstrauss about 7 years ago
url.rewrite-once = ( "^/download/([a-f0-9]{32})/(.+)$" => "down.php?file=$2&hashCode=$1" )
However, you might also look at Docs_ModSecDownload, which might provide similar functionality to what you have in down.php.