lighttpd forum migration > Imagehost and Lighttpd

Posted by martin (Guest)
on 10.10.2007 11:17
Hello!

I have a problem with lighttpd. The .htaccess:

RewriteBase  /

RewriteRule   ^show\.php/(.*)$ show2.php?img=$1 [L]
RewriteRule   ^out\.php/([a-z]{1})(.*)$ out2.php?$1=$2 [L]
RewriteRule   ^view\.php/(.*)$ view2.php?img=$1 [L]
RewriteRule   ^image\.php/([a-z]{1})(.*)$ images2.php?$1=$2 [L]
RewriteRule   ^gallery/([0-9]+)-([^/]*)/(.*)$ gallery.php?gal=$1&img=$3 
[L]
RewriteRule   ^view/([0-9]+)-([^/]*)/(.*)$ 
gallery_body.php?gal=$1&img=$3 [L]


My lighttpd config:

url.rewrite-once = ("^/show.php/(.*)$" => "/show2.php?img=$1",
                    "^/out.php/(.*)$" => "/out2.php?$1=$2",
                    "^/view.php/(.*)$" => "/view2.php?img=$1",
                    "^/images.php/(.*)$" => "/images2.php?$1=$2",
                    "^/gallery/(.*)$" => "/gallery.php?gal=$1&img=3$",
                    "^/view/(.*)$" => "/gallery_body.php?gal=$1&img=$3")

Can anybody help me?


Thank you!