2

How do i add noindex to the catalog/seo_sitemap in Magento

Both catalog/seo_sitemap/product/ and catalog/seo_sitemap/category

We have a large store and resulted in about 100 useless pages in google.

We still want it to be crawled but have noindex tag on the pages

2 Answers 2

1

You can use the following snippet:

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

In your case, that needs to be inserted in the catalog_seo_sitemap layout handle.

0
1

you can add with local.xml code for category and product

for product detail page

<catalog_product_view translate="label">
    <reference name="head">
        <action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action>
    </reference>
</catalog_product_view>

category page

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

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

</catalog_category_default>

hope this will work for you

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.