Need help urgent!! how to get .htaccess files to work with lighttpd?

Status
Not open for further replies.

kohkindachi

Active Member
1,181
2009
43
0
Ths rule were suppose to be in public_html htaccess

RewriteEngine on

Options +FollowSymlinks
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?link=$1
RewriteRule ^link([^/]*).html$ rewrite.php?link=$1 [L]

But after installing lightted, my server guy change it and add it to /etc/lighttpd/lighttpd.conf as

url.rewrite-once = ( "^link([^/]*).html$" => "/rewrite.php?link=$1",
".*\.(js|ico|gif|jpg|png|css|php|)$" => "$0",
"^/(.*)$" => "/index.php?link=$1")

but isn't working. Someone please advice
 
6 comments
Status
Not open for further replies.
Back
Top