[pmwiki-users] main homepage link problem

Maria McKinley parody at u.washington.edu
Thu Jul 26 20:08:33 CDT 2007


On 7/26/07, Tegan Dowling <tmdowling at gmail.com> wrote:
> On 7/26/07, Tegan Dowling <tmdowling at gmail.com> wrote:
> > On 7/26/07, Maria McKinley <parody at u.washington.edu> wrote:
> > > > > > > On 7/25/07, Maria McKinley <parody at u.washington.edu> 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.
>

No problem. I didn't copy the comments anyway. But it didn't help, I'm
afraid. I'll just keep prowling the pmwiki site for enlightenment, I
guess.

thanks,
maria



More information about the pmwiki-users mailing list