[Pmwiki-users] changing the default group and/or index page

Patrick R. Michaud pmichaud
Fri Dec 10 12:29:28 CST 2004


On Fri, Dec 10, 2004 at 12:53:22PM -0500, Neil Herber wrote:
> How does one select a different default group or page without invoking 
> mod_rewrite voodoo?
> 
> A URL like http://www.pmwiki.org/wiki/PmWiki/ takes me to the page 
> PmWiki/PmWiki.
> 
> A URL like http://my.example.com/pmwiki/ takes me to Main/HomePage when I 
> really want to go to MyGroup/MyPage.

Putting

    $DefaultPage = 'MyGroup.MyPage';

in config.php will do it.  

The default value of $DefaultPage is "$DefaultGroup.$DefaultName";
both $DefaultGroup and $DefaultName can be set in config.php.
$DefaultName is the default name to be used when a group is specified
with no pagename.

Pm



More information about the pmwiki-users mailing list