On 7/26/07, Tegan Dowling <[EMAIL PROTECTED]> wrote: > On 7/26/07, Maria McKinley <[EMAIL PROTECTED]> wrote: > > > > > > On 7/25/07, Maria McKinley <[EMAIL PROTECTED]> wrote: > > > > > > > Hello, > > > > > > > > > > > > > > I have just set up my wiki, and on the homepage is the heading > > > > > > > Main / > > > > > > > HomePage, where Main is a link. At this point, Main directs one to > > > > > > > http://www.myurl.org/pmwiki/Main > > > > > > > which does not exist. Main.HomePage does exist, but /Main does > > > > > > > not map > > > > > > > to /Main.HomePage, which I thought it should do by default. > > > > > > > > Normally is there some mechanism that automatically directs main to > > main/homepage? How is that suppose to work? > > There must be, but I don't know what it is -- I very much doubt that I > know much more than you do about how all this works -- I've just been > at it longer. I do know that when I read-protect my whole site by > setting > > $DefaultPasswords['read'] = crypt('readpasswordhere'); > > in local/config.php, it is then necessary to place this **near the > top** of my local/config.php: > > // When all read-attr is set for the whole wiki, these three lines > are needed > // to get domain to redir to Main and get Groupname to redir to > Groupname/Pagename > if (!$pagename) $pagename = 'Main.HomePage'; > if (!preg_match('!(\\.|/)!', $pagename)) > $pagename = "$pagename.HomePage"; > > > So if you want to give this a try, put it up there right below > > <?php if (!defined('PmWiki')) exit(); > > Hoping that helps, > > Tegan >
Great. My email put a linebreak in there that you could screw you up. Try this // When all read-attr is set for the whole wiki, these three lines are needed // to get domain to redir to Main and get Groupname to redir // to Groupname/Pagename if (!$pagename) $pagename = 'Main.HomePage'; if (!preg_match('!(\\.|/)!', $pagename)) $pagename = "$pagename.HomePage"; Sorry. _______________________________________________ pmwiki-users mailing list pmwiki-users@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-users