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

About this user

Jake Stetser http://icongarden.com/

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

WordPress with clean urls on Lighttpd

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...

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


and use this as your clean urls template

/%year%/%monthnum%/%day%/%postname%/
« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS