Hmm but the rewrite rules are very different from the ones shown at
http://wiki.splitbrain.org/wiki:rewrite#lighttpd. Your config is not complete.
For your reference this is the config currently running at wiki.splitbrain.org
$HTTP["host"] =~ "(^wiki\.splitbrain\.org|(^|www\.)(dokuwiki\.org|dokuwiki\.info))$" {
server.document-root = "/www/wiki/htdocs"
accesslog.filename = "/www/_logs/wiki-access.log"
# enable PHP
static-file.exclude-extensions = ( ".php" )
fastcgi.server = ( ".php" =>
(
( "socket" => "/www/_fastcgi/wiki/wiki.socket",
"check-local" => "disable",
"broken-scriptfilename" => "enable"
)
)
)
# deny access completly to these
$HTTP["url"] =~ "/\.ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "/_ht" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^/bin/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^/data/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^/inc/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^/conf/" { url.access-deny = ( "" ) }
$HTTP["url"] =~ "^/current-old/" { url.access-deny = ( "" ) }
# canonical host
$HTTP["host"] !~ "^wiki\.splitbrain\.org$" {
url.redirect = (
"^/(.*)" => "http://wiki.splitbrain.org/$1",
"" => "http://wiki.splitbrain.org/"
)
}
url.rewrite-once = (
"^(/|index.php)?$" => "/doku.php",
"^/lib/(.*)/?$" => "/lib/$1",
"^/_media/(.*)?\?(.*)$" => "/lib/exe/fetch.php?media=$1&$2",
"^/_media/(.*)$" => "/lib/exe/fetch.php?media=$1",
"^/_detail/(.*)?\?(.*)$" => "/lib/exe/detail.php?media=$1&$2",
"^/_detail/(.*)?$" => "/lib/exe/detail.php?media=$1",
"^/_export/([^/]+)/(.*)$" => "/doku.php?do=export_$1&id=$2",
"^/(?!doku.php|feed.php|langcheck.php|robots.txt|sitemap.xml.gz)(.*)\?(.*)/?$" => "/doku.php?id=$1&$2",
"^/(?!doku.php|feed.php|langcheck.php|robots.txt|sitemap.xml.gz)(.*)/?$" => "/doku.php?id=$1",
)
}