I'm in need of "translating" the following .htaccess file to code for lighttpd.conf. .httpd 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] Code (markup): I've been trying the following code in lighttpd.conf for the domain, but it's not working: 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") Code (markup): Any suggestions?
As far as I know Lighttpd doesn't have support for .htaccess files. You have to make the settings directly in the server's config file.
I'll just follow up with the solution if anyone would have the same issue 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" ) Code (markup):