[pmwiki-users] Question about link rel="canonical"
Petko Yotov
5ko at 5ko.fr
Sun Jul 24 06:18:40 CDT 2011
On Saturday 23 July 2011 11:57:00, ABClf wrote :
> Hi all !
>
> PmWiki doesn't generate a canonical link (used by major search engines).
> Would it be a good idea to generate one ? how (use $PageUrl (?) variable) ?
...
> http://www.languefrancaise.net/Argot/Villatte1884 (I use clean url and
> can't explain Google's choice).
If you need it, it is easy, just add to config.php:
$HTMLHeaderFmt['canonical'] = '<link rel="canonical" href="{$PageUrl}"/>';
Your site looks OK. For other sites, make sure that you have defined a
$ScriptUrl variable in config.php which points to your "canonical" address
without pmwiki.php.
Petko
More information about the pmwiki-users
mailing list