Jun 29, 09:47 PM
This is dumb.
In /etc/lighttpd/lighttpd.conf:
$HTTP["url"] =~ "^/blog/" {
server.error-handler-404 = "/blog/index.php"
}
Replace “blog” with your path. No, this doesn’t mean all hits now are reported as 404s, at least with Lighty 1.4.19:
71.184.x.x kiserai.net - [29/Jun/2008:23:18:25 -0400] "GET /blog/2008/06/29/gallery2-lighttpd-on-linux HTTP/1.1" 200 3392 "http://kiserai.net/blog/" "Opera/9.27 (Windows NT 5.1; U; en)"
On a related note, all my blog URLs have changed. The old ones probably still work.
Comment
Commenting is closed for this article.