HOWTO: Wordpress & lighttpd nice blog permalinks


June 25th, 2008

Or maybe, that should be HOWNOTTO:

Into lighttpd.conf:

$HTTP["host"] == "bluebottle.net.au" {
[...]
url.rewrite-once = ( "^/blog/(200./.*)" => "/blog/index.php?$1" )
}

Into Wordpress admin -> settings -> permalinks -> custom structure:

/%year%/%postname%

If you don't speak regex, here's what you should know:

  • Guaranteed to break 1st January 2010 or your money back.
  • Don't make any files / folders under 'blog' called '200x', where x is any single character. (You shouldn't make any folders under there anyway, because that makes upgrading painful.)

Leave a Reply

Name (required)

Email (required)

Website

Speak your mind

Misc