NameSilo

.htaccess => Lighttpd config

Spaceship Spaceship
Watch

col

Established Member
Impact
5
I'm in need of "translating" the following .htaccess file to code for lighttpd.conf.

.httpd
Code:
Options +Indexes
RewriteEngine on
RewriteRule ^go-(.*)-(.*).html$ index.php?go=$1&id=$2 [L,NC]
RewriteRule ^(.*)-(.*)-(.*).html$ index.php?go=$2&id=$3 [L,NC]
RewriteRule ^([0-9]+)/[^/]+/([0-9]+)/$ index.php?go=subcat&id=$1&pageNum_pages=$2 [L,NC]
RewriteRule ^([0-9]+)/.*$ index.php?go=subcat&id=$1 [L,NC]

I've been trying the following code in lighttpd.conf for the domain, but it's not working:
Code:
url.rewrite = ( "^go-(.*)-(,*).html$" => "index.php?go=$1&id=$2",
                    "^(.*)-(.*)-(.*).html$" => "index.php?go=$2&id=$3",
                    "^([0-9]+)/[^/]+/([0-9]+)/$" => "index.php?go=subcat&id=$1&pageNum_pages=$2",
                    "^([0-9]+)/.*$" => "index.php?go=subcat&id=$1")

Any suggestions?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
0
•••
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back