cancel
Showing results for 
Search instead for 
Did you mean: 

how to setup noindex,follow in a static page

how to setup noindex,follow in a static page

I would set the robots meta tags to "noindex,follow" in a static page.

In magento 1.9:

<reference name="head">
   <action method="setRobots"><value>NOINDEX,FOLLOW</value></action>
</reference>

In Magento 2?

Thank you

Regards

5 REPLIES

Re: how to setup noindex,follow in a static page

stores -> general -> design -> and here is tab Search Engine Robots

Re: how to setup noindex,follow in a static page

No!

I want to set the meta tags - via XML - only in a static page, not at all site.

 

what is the equivalent of this code in magento2?

 

<reference name="head">
<action method="setRobots"><value>NOINDEX,FOLLOW</value></action>
</reference>

 

Re: how to setup noindex,follow in a static page

Add this to your layout update:

 

<head>
    <meta name="robots" content="NOINDEX,NOFOLLOW"/>
</head>

 

Re: how to setup noindex,follow in a static page

Did you get the solution? Smiley Happy

Re: how to setup noindex,follow in a static page

Hi @Riswit @kor3

 

 

We have developed a Magento 2 extension to set meta robots tag per page basis. You can use it to easily update meta robot tag for any of store pages(particular product, category, CMS page, shopping cart etc ) via admin.

 

The extension can be found at below URL

 

https://redchamps.com/meta-robots-tag-per-page-magento-2-extension.html