Hi,
i´m totally new to sNews and have a problem on adepting the rewrite rules in the htaccess
file from apache to lighttpd . I´m afraid apache is not an alternative for me
Can you help me?
<IfModule mod_php4.c>
php_value session.use_trans_sid 0
</IfModule>
<IfModule mod_security.c>
SecFilterEngine Off
SecFilterScanPOST Off
</IfModule>
RewriteEngine On
#RewriteBase /sNews16
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule ^(.*) $1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?category=$1 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+) index.php?category=$1&title=$2 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z_]+)/([^/]+)/([^/]+)/
index.php?category=$1&title=$2&commentspage=$3 [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([a-z0-9_-]+)/([0-9]+)/
index.php?category=$1 articlespage=$2 [L]
I added the following rule to my lighttpd.conf:
url.rewrite-once = ( "^(.*)" => "$1"
"^(.*)$" => "index.php?category=$1",
"^([a-z_]+)/([^/]+)" =>
"index.php?category=$1&title=$2",
"^([a-z_]+)/([^/]+)/([^/]+)/" =>
"index.php?category=$1&title=$2&commentspage=$3",
"^([a-z0-9_-]+)/([0-9]+)/" =>
"index.php?category=$1 articlespage=$2"
)
I also tried rules i found in the forum, they didn´t work also.
What have i done wrong?
Thanks in advance for your help.