Monday July 21, 2008
Category
WWW
Webservers
A common technique for implementing so-called “clean URLs” in lighttpd for use with TextPattern is this (from this post):
server.error-handler-404 = "/index.php"
That’s a bit hackish and displeasing to me for some reason. What about a regular URL rewrite? Try this in your lighttpd.conf:
url.rewrite-final = (
"^/([^.?]*)$" => "/index.php/$1"
)
It’s adapted from an example by the Drupal people.
Comment [7]