This patch allows DokuWiki to be run under _one_ alias or in an user-directory (mod_userdir). For Dokuwiki 2009-02-14b. --- inc/pageutils.php.old 2009-02-21 17:15:23.000000000 +0100 +++ inc/pageutils.php 2009-09-07 00:47:39.000000000 +0200 @@ -24,7 +24,12 @@ $id = isset($_REQUEST[$param]) ? $_REQUEST[$param] : null; //construct page id from request URI - if(empty($id) && $conf['userewrite'] == 2){ + if(empty($id) && $conf['userewrite'] == 2 && ! (strpos($_SERVER["SERVER_SOFTWARE"],"Apache") === false)) { + // use this behavior to fix alias-setups + $id = urldecode($_SERVER["PATH_INFO"]); + //strip leading slashes + $id = preg_replace('!^/+!','',$id); + } elseif(empty($id) && $conf['userewrite'] == 2){ //get the script URL if($conf['basedir']){ $relpath = '';