Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

WordPress with clean urls on Lighttpd (See related posts)

This single line seems to work for my WP install. I needed to add a couple of redirects and rewrites to handle my RSS feed, since I use Feedburner, but this line does all the heavy lifting...

Place it after server.document-root, either in the main section or in your virtual host sub-sections...

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


and use this as your clean urls template

   1  /%year%/%monthnum%/%day%/%postname%/

You need to create an account or log in to post comments to this site.


Click here to browse all 5502 code snippets

Related Posts