When URL re-writing is set to "DokuWiki internal" the link in the upper right in the default template will have a '/' appended to it, which may cause you to be sent to the "document doesn't exist"/create page. For example,
http://foo.bar.com/wiki/doku.php/ is used instead of
http://foo.bar.com/wiki/doku.php.
The problem comes in common.php:wl().
function wl($id='',$more='',$abs=false,$sep='&'){
.
.
.
if($conf['userewrite'] == 2){
$xlink .= DOKU_SCRIPT.'/'.$id;
if($more) $xlink .= '?'.$more;
}elseif($conf['userewrite']){
Since the "home link" call to wl() specifies no arguments, $id is empty. The resulting append leaves the dangling /. Below is a corrected version of the code.
if($conf['userewrite'] == 2){
$xlink .= DOKU_SCRIPT;
if($id) $xlink .= '/'.$id;
if($more) $xlink .= '?'.$more;
}elseif($conf['userewrite']){
And this is the diff...
--- .snapshot/hourly.1/common.php 2010-01-17 04:35:47.000000000 -0600
+++ common.php 2010-07-20 12:35:39.956043000 -0500
@@ -362,7 +362,8 @@
}
if($conf['userewrite'] == 2){
- $xlink .= DOKU_SCRIPT.'/'.$id;
+ $xlink .= DOKU_SCRIPT;
+ if($id) $xlink .= '/'.$id;
if($more) $xlink .= '?'.$more;
}elseif($conf['userewrite']){
$xlink .= $id;