Canonical ссылается на taxonomy

Главные вкладки

Аватар пользователя Stasmotion Stasmotion 23 декабря 2014 в 10:34

После обновления дизайна вылезла следующая ошибка:
Во всех новых разделах сайта rel="canonical" ссылается на taxonomy. Вся дериктория taxonomy естественно закрыта в robots.
Пример
Страница semena-zakaz.ru/каталог/цветы-семена/цветы-однолетние/бархатцы
link rel="canonical" href="http://semena-zakaz.ru/taxonomy/term/225"

Раньше все страницы ссылались сами на себя автоматом semena-zakaz.ru/каталог/овощи-семена
link rel="canonical" href="http://semena-zakaz.ru/%D0%BA%D0%B0%D1%82%D0%B0%D0%BB%D0%BE%D0%B3/%D0%BE..."

Где копать?

Комментарии

Аватар пользователя gun_dose gun_dose 23 декабря 2014 в 12:12

Надо смотреть, что там за модули у вас стоят, отвечающие за каноникал. Самый простой способ поставить globalredirect - он по умолчанию включает каноникал для каждой страницы, равный её псевдониму.

Аватар пользователя Stasmotion Stasmotion 23 декабря 2014 в 14:33

"gun_dose" wrote:
Надо смотреть, что там за модули у вас стоят, отвечающие за каноникал. Самый простой способ поставить globalredirect - он по умолчанию включает каноникал для каждой страницы, равный её псевдониму.

Глобалредирект установлен.
Вот его настройки:

Но если ставить галочку в поле "Добавить каноническую ссылку", то в коде встает сразу 2 canonical: одна на таксономию, вторая на саму себя.

Аватар пользователя Stasmotion Stasmotion 23 декабря 2014 в 14:41

"gun_dose" wrote:
надо галку поставить на "Добавить каноническую ссылку"

"Stasmotion" wrote:
если ставить галочку в поле "Добавить каноническую ссылку", то в коде встает сразу 2 canonical: одна на таксономию, вторая на саму себя.

Аватар пользователя Stasmotion Stasmotion 25 декабря 2014 в 15:12

Хочу просто выключить этот canonical. Зачем он по сути нужен если страница ссылается сама на себя.
А править каждую страницу не очень перспективно.

Попробовал снять галочку в nodewords ссылка все равно осталась

В глобалредирект галочка не стоит.

Где еще эта злощасная ссылка может быть прописана?

Из сео модулей стоит nodewords, page title, xml sitemap

Прикрепил html.tpl.php может там что действительно прописано?

<?php
// $Id: page.tpl.php,v 1.7 2010/09/17 21:36:06 eternalistic Exp $
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="<?php print $language->language; ?>" xml:lang="<?php print $language->language; ?>">

<head>
  <title><?php print $head_title; ?></title>
  <?php print $head; ?>
   <meta name="robots" content="noyaca"/>
  <?php print $styles; ?>
  <?php print $setting_styles; ?>
  <!--[if IE 8]>
  <?php print $ie8_styles; ?>
  <![endif]-->
  <!--[if IE 7]>
  <?php print $ie7_styles; ?>
  <![endif]-->
  <!--[if lte IE 6]>
  <?php print $ie6_styles; ?>
  <![endif]-->
  <?php print $local_styles; ?>
  <?php print $scripts; ?>
  <script type="text/javascript" src="http://userapi.com/js/api/openapi.js?52"></script>
  <script type="text/javascript">VK.init({apiId: 3088477, onlyWidgets: true});</script>

</head>

<body id="<?php print $body_id; ?>" class="<?php print $body_classes; ?>">
         <div id="body-midle">
            <div id="body-botom">

  <div id="page" class="page">
    <div id="page-inner" class="page-inner">
      <div id="skip">
        <a href="#main-content-area"><?php print t('Skip to Main Content Area'); ?></a>
      </div>

      <!-- header-top row: width = grid_width -->
      <?php if ($header_top || $secondary_links || $search_box): ?>
      <div id="header-top-wrapper" class="header-top-wrapper full-width">
        <div id="header-top" class="<?php if ($search_box): ?>header-top-search<?php endif; ?> header-top row <?php print $grid_width; ?>">
          <div id="header-top-inner" class="header-top-inner inner clearfix">
            <?php print theme('grid_row', $header_top, 'header-top-region', 'full-width', $grid_width); ?>
            <?php print theme('grid_block', theme('links', $secondary_links), 'secondary-menu'); ?>
            <?php if ($header_top && !$secondary_links): ?><div id="header-top-placeholder"></div><?php endif; ?>
          </div><!-- /header-top-inner -->
        </div><!-- /header-top -->
      </div><!-- /header-top-wrapper -->
      <?php endif; ?>

      <!-- header-group row: width = grid_width -->
      <div id="header-group-wrapper" class="header-group-wrapper full-width">
        <div id="header-group" class="header-group row <?php print $grid_width; ?>">
          <div id="header-group-inner" class="header-group-inner inner clearfix">
            <?php if ($logo || $site_name || $site_slogan): ?>
            <div id="header-site-info" class="header-site-info block">
              <div id="header-site-info-inner" class="header-site-info-inner inner clearfix">
                <?php if ($logo): ?>
                <div id="logo">
                  <a href="<?php print check_url($front_page); ?>" title="Интернет-магазин «Семена-Почтой»"><img src="<?php print $logo; ?>" alt="Интернет-магазин «Семена-Почтой»" /></a>
                </div>
                <?php endif; ?>
                <?php if ($site_name || $site_slogan): ?>
                <div id="site-name-slogan" class="site-name-slogan">
                  <?php if ($site_name): ?>
                  <span id="site-name"><a href="<?php print check_url($front_page); ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a></span>
                  <?php endif; ?>
                  <?php if ($site_slogan): ?>
                  <span id="slogan"><?php print $site_slogan; ?></span>
                  <?php endif; ?>
                </div>
                <?php endif; ?>
              </div><!-- /header-site-info-inner -->
            </div><!-- /header-site-info -->
            <?php endif; ?>
            <?php print $header; ?>
          </div><!-- /header-group-inner -->
        </div><!-- /header-group -->
      </div><!-- /header-group-wrapper -->

      <!-- primary-menu row: width = grid_width -->
      <div id="header-primary-menu-wrapper" class="header-primary-menu-wrapper full-width">
        <div id="header-primary-menu" class="header-primary-menu row <?php print $grid_width; ?>">
          <div id="header-primary-menu-inner" class="header-primary-menu-inner inner clearfix">
            <?php print theme('grid_block', $primary_links_tree, 'primary-menu'); ?>

             <?php if (!empty($search_box)): ?>
                <div id="search-box-top" class="search-box-top">
                  <div id="search-box-inner" class="search-box-inner">
                    <?php print $search_box; ?>
                  </div>
                </div>
             <?php endif; ?> <!-- /search-box -->

          </div><!-- /header-primary-menu-inner -->
        </div><!-- /header-primary-menu -->
      </div><!-- /header-primary-menu-wrapper -->

      <!-- preface-top row: width = grid_width -->
      <?php print theme('grid_row', $preface_top, 'preface-top', 'full-width', $grid_width); ?>

      <!-- main row: width = grid_width -->
      <div id="main-wrapper" class="main-wrapper full-width">
        <div id="main" class="main row <?php print $grid_width; ?>">
          <div id="main-inner" class="main-inner inner clearfix">
            <?php print theme('grid_row', $sidebar_first, 'sidebar-first', 'nested', $sidebar_first_width); ?>

            <!-- main group: width = grid_width - sidebar_first_width -->
            <div id="main-group" class="main-group row nested <?php print $main_group_width; ?>">
              <div id="main-group-inner" class="main-group-inner inner">
                <?php print theme('grid_row', $preface_bottom, 'preface-bottom', 'nested'); ?>

                <div id="main-content" class="main-content row nested">
                  <div id="main-content-inner" class="main-content-inner inner">
                    <!-- content group: width = grid_width - (sidebar_first_width + sidebar_last_width) -->
                    <div id="content-group" class="content-group row nested <?php print $content_group_width; ?>">
                      <div id="content-group-inner" class="content-group-inner inner">
                        <?php print theme('grid_block', $breadcrumb, 'breadcrumbs'); ?>

                        <?php if ($content_top || $help || $messages): ?>
                        <div id="content-top" class="content-top row nested">
                          <div id="content-top-inner" class="content-top-inner inner">
                            <?php print theme('grid_block', $help, 'content-help'); ?>
                            <?php print theme('grid_block', $messages, 'content-messages'); ?>
                            <?php print $content_top; ?>
                          </div><!-- /content-top-inner -->
                        </div><!-- /content-top -->
                        <?php endif; ?>

                        <div id="content-region" class="content-region row nested">
                          <div id="content-region-inner" class="content-region-inner inner">
                            <a name="main-content-area" id="main-content-area"></a>
                            <?php print theme('grid_block', $tabs, 'content-tabs'); ?>
                            <div id="content-inner" class="content-inner block">
                              <div id="content-inner-inner" class="content-inner-inner inner">

                              <div id="content-top" class="content-top">
                                 <?php if ($h1title): ?>
                                                                                        <span class="title-wrapper"><h1 class="title"><?php print $h1title; ?></h1></span>
                                                                                 <?php else: ?>
                                                                                        <span class="title-wrapper"><h1 class="title"><?php print $title; ?></h1></span>
                                  <?php endif; ?>

                                </div><!-- /content-top -->

                                <?php if ($content): ?>
                                <div id="content-content" class="content-content">
                                  <?php print $content; ?>
                                  <?php print $feed_icons; ?>
                                </div><!-- /content-content -->
                                <?php endif; ?>

                                 <div id="content-bottom" class="content-bottom">
                                 </div><!-- /content-bottom -->

                                <?php if ($content_bottom2): ?>
                                <div id="content-bottom-2" class="content-bottom-2">
                                  <?php print $content_bottom2; ?>
                                </div><!-- /content-content2 -->
                                <?php endif; ?>

                              </div><!-- /content-inner-inner -->
                            </div><!-- /content-inner -->
                          </div><!-- /content-region-inner -->
                        </div><!-- /content-region -->

                        <?php print theme('grid_row', $content_bottom, 'content-bottom', 'nested'); ?>
                      </div><!-- /content-group-inner -->
                    </div><!-- /content-group -->

                    <?php print theme('grid_row', $sidebar_last, 'sidebar-last', 'nested', $sidebar_last_width); ?>
                  </div><!-- /main-content-inner -->
                </div><!-- /main-content -->

                <?php print theme('grid_row', $postscript_top, 'postscript-top', 'nested'); ?>
              </div><!-- /main-group-inner -->
            </div><!-- /main-group -->
          </div><!-- /main-inner -->
        </div><!-- /main -->
      </div><!-- /main-wrapper -->

      <!-- postscript-bottom row: width = grid_width -->
      <?php print theme('grid_row', $postscript_bottom, 'postscript-bottom', 'full-width', $grid_width); ?>

      <!-- footer row: width = grid_width -->
      <?php print theme('grid_row', $footer, 'footer', 'full-width', $grid_width); ?>

      <!-- footer-message row: width = grid_width -->
      <div id="footer-message-wrapper" class="footer-message-wrapper full-width">
        <div id="footer-message" class="footer-message row <?php print $grid_width; ?>">
          <div id="footer-message-inner" class="footer-message-inner inner clearfix">
            <?php print theme('grid_block', $footer_message, 'footer-message-text'); ?>
            <div style="float:left">© Интернет-магазин «СЕМЕНА-ПОЧТОЙ», 2011-2014</div>
            <div class="map" style="float:left"><a href="/sem-site-map">Карта Сайта</a></div>
            <div style="float:right;margin-left:20px;filter:alpha(opacity=50);-moz-opacity:0.5;-khtml-opacity:0.5;opacity:0.5">
</div>
            <div class="phone" style="float:right">8 (800) 5000-943</div>
          </div><!-- /footer-message-inner -->
        </div><!-- /footer-message -->
      </div><!-- /footer-message-wrapper -->

    </div><!-- /page-inner -->
  </div><!-- /page -->
  <?php print $closure; ?>

<!-- Yandex.Metrika -->
<!-- /Yandex.Metrika -->

  </div><!-- /body -->
   </div><!-- /body -->

</body>
</html>