[pmwiki-users] $PagePathFmt sometimes not working for me

Robert Riebisch rr at bttr-software.de
Thu Dec 31 13:44:56 PST 2020


Hi!

I'm trying to setup a new wiki with PmWiki 2.2.134.

My local/config.php has:

$DefaultGroup = 'Wiki';
$DefaultName = 'Start';
$PagePathFmt = array('{$Group}.$1','$1.{$DefaultName}');

There are no pages in the Wiki group so far.

Test #1
-------
Input: https://www.domain.tld/
Output: The page "" doesn't exist. (Create Wiki.Start).
Result: Nearly okay.

Why does it say "" here?
Yes, this is marginal, because a wiki should have an existing landing page.
Maybe, in Site.PageNotFound the text `The page "{$RequestedPage}"
doesn't exist.´ should be changed to `The page "{*$FullName}" doesn't
exist.´
Or $RequestedPage should have the value of $DefaultPage here.

Test #2
-------
Input: https://www.domain.tld/Foo
Output: The page "Foo" doesn't exist. (Create Foo.Foo).
Result: Wrong. I would expect: The page "Start" doesn't exist. (Create
Foo.Start).

If I create Foo/Start, then repeating test #2, correctly shows the
https://www.domain.tld/Foo/Start page.

Test #3
-------
Input: https://www.domain.tld/Foo/
Output: The page "Foo/Start" doesn't exist. (Create Foo.Start).
Result: Okay.

Is the behavior in test #1 and #2 related to my .htaccess file in the
root directory?
>>><<<
##  Use mod_rewrite to enable "Clean URLs" for a PmWiki installation.
RewriteEngine On

##  Define the rewrite base.
RewriteBase /

##  Send requests without parameters to pmwiki.php.
RewriteRule ^$           pmwiki.php  [L]

##  Send requests for index.php to pmwiki.php.
RewriteRule ^index\.php$ pmwiki.php  [L]

##  Send requests to pmwiki.php, appending the query string part.
RewriteRule ^([A-Z0-9\xa0-\xff].*)$ pmwiki.php?n=$1  [QSA,L]

>>><<<

Cheers,
Robert
-- 
              +++ BTTR Software +++
     Home page: https://www.bttr-software.de/
DOS ain't dead: https://www.bttr-software.de/forum/



More information about the pmwiki-users mailing list