[pmwiki-users] get rid of group Main from url

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 8 08:18:41 CST 2006


On Tue, Nov 07, 2006 at 12:05:31PM -0600, JB wrote:
>  > That's it.
> 
> Anno,  NO, That is not it.  What you posted does not work.
> It only made it worse! The "Main." is still in the url
> and now it displays "index.php" again!

Here's what I have now -- you can see it working at
http://www.pmichaud.com/sandbox/grom/?n=WikiSandbox .


Here's the local/config.php:

    <?php
    $ScriptUrl = 'http://www.pmichaud.com/sandbox/grom/';
    $PubDirUrl = 'http://www.pmichaud.com/sandbox/grom/pub';
    
    $PagePathFmt = array(
           '{$Group}.$1',           # page in current group
           '{$DefaultGroup}.$1',    # page in default group (Main)
           '$1.$1',                 # group home page
           '$1.{$DefaultName}',     # group home page
    );
    
    $pagename = MakePageName('Main.HomePage', $pagename);
    
    $FmtPV['$PageUrl'] = 'PUE(($group==$GLOBALS["DefaultGroup"])
                                 ? "$ScriptUrl?n=$name"
                                   : "$ScriptUrl?n=$group.$name")';

Pm




More information about the pmwiki-users mailing list