[pmwiki-users] main homepage link problem

Tegan Dowling tmdowling at gmail.com
Thu Jul 26 19:15:35 CDT 2007


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



More information about the pmwiki-users mailing list