Пробую сделать так как Вы написали на сайте Авторская библиотека
http://www.avtobiblio.com . На главную тэг "Canonical" встал, на остальных страницах его нет. Что я не так сделал ? В файле templates/МОЙ ШАБЛОН/html/com_content/archive/default.php я прописал:
<?php // no direct access
/*------------------------------------------------------------------------
# JA ZinC for Joomla 1.5 - Version 1.0 - Licence Owner JA162824
# ------------------------------------------------------------------------
# Copyright (C) 2004-2008 J.O.O.M Solutions Co., Ltd. All Rights Reserved.
# @license - Copyrighted Commercial Software
# Author: J.O.O.M Solutions Co., Ltd
# Websites:
http://www.joomlart.com -
http://www.joomlancers.com# This file may not be redistributed in whole or significant part.
-------------------------------------------------------------------------*/
defined('_JEXEC') or die('Restricted access'); ?>
// ------------ Start Canonical-Mod
$mainmenu =& JSite::getMenu();
if($mainmenu->getActive()!== $mainmenu->getDefault()) :
$app = JFactory::getApplication();
$document = JFactory::getDocument();
$livesite = substr_replace(JURI::root(), '', -1, 1);
$docpagenr = '';
$docstart = JRequest::getInt('start',0);
if($docstart>0) :
// Если хотим чтобы в канонической ссылке прописывалась постраничная разбивка типа start=10..., то раскомментируем сроку ниже. В противном случае будет индексироваться только главная страница архива
//$docpagenr = '?start='.$docstart;
endif;
$docroute = JRoute::_('index.php?Itemid='.$app->getMenu()->getActive()->id);
// Если хотим хотим запретить поисковикам индексацию раздела архива, то раскомментируем сроку ниже.
//$document->setMetadata('robots', 'noindex, nofollow');
$document->addHeadLink($livesite . $docroute . $docpagenr, 'canonical', 'rel', '');
endif;
// ------------ End Canonical-Mod
<form id="jForm" action="<?php JRoute::_('index.php')?>" method="post">
<?php if ($this->params->get('show_page_title')) : ?>
<h1 class="componentheading<?php echo $this->escape($this->params->get('pageclass_sfx'))?>"><?php echo $this->escape($this->params->get('page_title')); ?></h1>
<?php endif; ?>
<p>
<?php if ($this->params->get('filter')) : ?>
<?php echo JText::_('Filter').' '; ?>
<input type="text" name="filter" value="<?php echo htmlspecialchars($this->filter, ENT_COMPAT, 'UTF-8'); ?>" class="inputbox" onchange="document.jForm.submit();" />
<?php endif; ?>
<?php echo $this->form->monthField; ?>
<?php echo $this->form->yearField; ?>
<?php echo $this->form->limitField; ?>
<button type="submit" class="button"><?php echo JText::_('Filter'); ?></button>
</p>
<?php echo $this->loadTemplate('items'); ?>
<input type="hidden" name="view" value="archive" />
<input type="hidden" name="option" value="com_content" />
</form>