NerdOCRACY, the server hosting barisione.org, moved to lighttpd as it’s less resource-hungry and easier to configure.

I had only some problems with WordPress, to have clean addresses like http://www.example.com/about instead of something like http://www.example.com/?p=123 it uses this htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

I resolved using server.error-handler-404 as suggested on snippets.dzone.com:

$HTTP["host"] == "www.example.com" {
    server.document-root = "/usr/share/wordpress"
    server.error-handler-404 = "/index.php"

2 thoughts on “s/Apache/lighttpd/

  1. This probably means that perfectly valid URLs to blog posts will return a 404 error status, which is wrong and violates the standard. Search engines for one won’t index such pages.


Comments are closed.