This is what I did:
- Enable mod_rewrite in lighttpd.conf
- Inside the block for your virtual host definition $HTTP["host"] == "youdomain.com" {...}, add
url.rewrite-once = (
"^/(files/.*)$" => "/$1",
"^/system/test/(.*)$" => "/index.php?q=system/test/$1",
"^/([^.?]*)\?(.*)$" => "/index.php?q=$1&$2",
"^/([^.?]*)$" => "/index.php?q=$1",
"^/search/node/(.*)$" => "/index.php?q=search/node/$1"
)
The first line tells Lighty not to translate anything start with /files. If you have other directories that serve static files, add them the same way.
- If your baseurl is not "/", please change that accordingly.
- Now restart your lighty and it shall work.
This configuration works for Drupal-5 too.
Update: This article is probably a better reference for you: http://www.cyberciti.biz/tips/lighttpd-drupal-htacess-seo-clean-urls.html
Recent comments
2 weeks 5 days ago
3 weeks 6 days ago
7 weeks 4 days ago
32 weeks 4 days ago
33 weeks 3 days ago
44 weeks 3 days ago
45 weeks 6 days ago
1 year 2 weeks ago
1 year 2 weeks ago
1 year 3 weeks ago