meta robots prestashop

https://kiwimaker.es/prestashop/descontrol-de-url-con-parametros-amp%253b%25/

a:/public_html/themes/classic/templates/_partials/head.tpl

{block name='head_seo'}
  <title>{block name='head_seo_title'}{$page.meta.title}{/block}</title>
  <meta name="description" content="{block name='head_seo_description'}{$page.meta.description}{/block}">
  <meta name="keywords" content="{block name='head_seo_keywords'}{$page.meta.keywords}{/block}">

  {assign "ruta" "https://{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}"}
  {if $ruta|strstr:'amp%'}
    <meta name="robots" content="noindex,follow">
  {else}
    {if $page.meta.robots !== 'index'}
      <meta name="robots" content="{$page.meta.robots}">
    {/if}
  {/if}

  {if $page.canonical}
    <link rel="canonical" href="{$page.canonical}">
  {/if}
  {block name='head_hreflang'}
      {foreach from=$urls.alternative_langs item=pageUrl key=code}
            <link rel="alternate" href="{$pageUrl}" hreflang="{$code}">
      {/foreach}
  {/block}
{/block}

¿Le ha resultado útil este artículo?