WordPress permalinks in Lighttpd

WordPress uses .htaccess files to process its permalinks structure, but Lighttpd won't obey .htaccess files (yet). So, instead of banging your head against the wall, just use something like the following:

server.error-handler-404 = "/index.php?error=404"

For example, the virtual host for this very website is:

$HTTP["host"] =~ "rackerhacker\\.com" {
        server.document-root = basedir+"rackerhacker.com/"
        server.error-handler-404 = "/index.php?error=404"
}

Printed from: http://rackerhacker.com/2007/04/08/wordpress-permalinks-in-lighttpd/ .
© Major Hayden 2012.

1 Comment   »

  • Jon says:

    Thanks a lot! I have been looking a way to make it work, but non of the ways worked.

RSS feed for comments on this post

Leave a Reply

 

  • Welcome! I started this blog as a way to give back to all of the other system administrators who have taught me something in the past. Writing these posts brings me a lot of enjoyment and I hope you find the information useful. If you spot something that's incorrect or confusing, please write a comment and let me know. Drop me a line if there's something you want to know more about and I'll do my best to write a post on the topic.
    -- Major Hayden

    Flattr this