[pmwiki-users] re-sending: Turning Off "noindex,nofollow"

Patrick R. Michaud pmichaud at pobox.com
Thu Jan 26 20:27:01 CST 2006


On Thu, Jan 26, 2006 at 06:34:56PM -0700, Philip Stitt wrote:
> (my first email was garbled, trying again...)
> 
> Hi, this is my first post. I?m pretty blown away by the system (amazed
> actually), and every thing has gone smoothly so far, except one problem
> I?m having: I?d like to have my site set up so that robots follow every
> link except edit and history links, including url links (I?m using the
> url approval script for external links, by the way). 

Welcome to PmWiki!

I'm not sure I'm understanding the question ... is it that robots are
following links you don't want them to follow, or that they're
not following links you do want them to follow?

In its default configuration, PmWiki already tells robots not
to follow edit or history links, and if a robot ignores the advice
and follows them anyway, it gets "403 Forbidden" response.

If you want to make sure that robots go ahead and index a page
and follow links on all pages, including the PmWiki docs), then
you can set (in local/config.php):

  $UrlLinkFmt =
    "<a class='urllink' href='\$LinkUrl'>\$LinkText</a>";
  $MetaRobots = 'index,follow';

I think this will do what you want.

> I tried changing the ? $MetaRobots, "noindex,nofollow" ? line in
> pmwiki.php to ? $MetaRobots, "" ?, but that didn?t work (it made the
> pmwiki page show nothing but code). 

It's generally a bad idea to modify pmwiki.php or the distribution files --
it makes things much harder to upgrade.  :-)  Generally anything you 
want to change can be done in the local/config.php or another 
customization file.  (And if it can't, let us know so we can fix 
PmWiki to not require the modification. :-)

Hope this helps, let us know if it works...

Pm




More information about the pmwiki-users mailing list