Jump to content

Comment mettre Robot meta tag en follow ? [RESOLU]


Recommended Posts

22 minutes ago, Mediacom87 said:

Bonjour,

Pas besoin, c'est l'état natif de cette balise.

On ne doit la mettre que dans le cas d'une restriction.

 C'est depuis la version 8 ? Avant, il me semble que j'avais la balise en INDEX FOLLOW.

Enfin, bon, merci pour ton explication 😀

Link to comment
Share on other sites

  • arm15 changed the title to Comment mettre Robot meta tag en follow ? [RESOLU]

En 1.7, sur le thème Classic on a déjà ce code qui ne s'affiche que si on n'est pas sur la base d'un INDEX

  {if $page.meta.robots !== 'index'}
    <meta name="robots" content="{$page.meta.robots}">
  {/if}

En 1.6 il était affiché tout le temps.

<meta name="robots" content="{if isset($nobots)}no{/if}index,{if isset($nofollow) && $nofollow}no{/if}follow" />

En 8 on est sur la même chose qu'en 1.7

  {if $page.meta.robots !== 'index'}
    <meta name="robots" content="{$page.meta.robots}">
  {/if}

Et sur la 9, en Classic ou en Hummingbird, on a exactement le même comportement.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...