I've finally decided to setup DokuWiki as a personnal wiki, as it handles 2 of my first needs: namespaces and ACLs by namespaces.
Here are the options you need to set up to get clean URL rewriting in LightTPD.
In conf/dokuwiki.conf:
$conf['userewrite'] = 1; //this makes nice URLs: 0: off 1: .htaccess 2: internal $conf['useslash'] = 1; //use slash instead of colon? only when rewrite is on
The second line is optional, but I feel better handling namespaces pages with / - as subdirectories - instead of colons.
Actually, you can set option 2 (internal) for the userewrite parameter. Yet, URLs would be like "wiki/doku.php/mypage", and I'd prefer something like "wiki/mypage". In such a case (option 1), you need to set the following rules in lighttpd.conf:
"^/wiki/?$" => "/wiki/doku.php", "^/wiki/lib/(.*)/?$" => "/wiki/lib/$1", "^/wiki/(.*)\?do=(.*)/?$" => "/wiki/doku.php?id=$1&do=$2", "^/wiki/(.*)/?$" => "/wiki/doku.php?id=$1\