cancel
Showing results for 
Search instead for 
Did you mean: 

noindex, follow in 404

noindex, follow in 404

Hi,

 

 I tried adding this code:

<reference name="head">
<action method="setRobots"><value>noindex, follow</value><name>robots</name></action>
</reference>

 

in the layout update XML of the 404 page but still when viewing the page source the page has "index, follow" meta tags in it.

Can someone show me the right way to add noindex ,follow in the 404 page?

 

 Thanks.

6 REPLIES 6

Re: noindex, follow in 404

Hi @JoshCber

 

Try with following xml code

<cms_index_noroute>
    <reference name="head">
        <action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action>
    </reference>    
</cms_index_noroute>
---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: noindex, follow in 404

Hi muk_t,

 

I added your code but still the page appears as index, follow.

 

Re: noindex, follow in 404

Hi Josh,

 


Have you cleared cache to make sure the latest changes from your file are being rendered on the page?

 

 

Best regards.

Gabriel

Welcome to the Magento Forums. Remember to introduce yourself and read the Magento Forums Guidelines.

Re: noindex, follow in 404

Hi @JoshCber

 

If you are adding this xml in the Magento admin then use following

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

and you must clear caches after doing this. Then it should work for you.

---
Problem Solved Click Accept as Solution!:Magento Community India Forum

Re: noindex, follow in 404

Hi,

 

I added the code in the 404 not found page in its layout update XML area ,save the page and cleared the cache .

But after checking the page source of the 404 page , it still shows index, follow.

Re: noindex, follow in 404

I think it is not that important to have the 404 page noindexed ..

Thanks for the response guys.