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
8 weeks 6 days ago
9 weeks 5 days ago
20 weeks 5 days ago
22 weeks 23 hours ago
30 weeks 6 days ago
31 weeks 16 hours ago
32 weeks 5 hours ago
32 weeks 6 days ago
32 weeks 6 days ago
33 weeks 17 hours ago