- Impact
- 5
I'm in need of "translating" the following .htaccess file to code for lighttpd.conf.
.httpd
I've been trying the following code in lighttpd.conf for the domain, but it's not working:
Any suggestions?
.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?