Created
November 13, 2014 20:06
-
-
Save jasontipton/9e35ae3f878282ba37ae to your computer and use it in GitHub Desktop.
Magento Local.xml NOINDEX/NOFOLLOW Catalog Search
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<layout version="0.1.0"> | |
<!-- Search Results page --> | |
<catalogsearch_result_index> | |
<reference name="head"> | |
<action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action> | |
</reference> | |
</catalogsearch_result_index> | |
<!-- Advanced Search page --> | |
<catalogsearch_advanced_result> | |
<reference name="head"> | |
<action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action> | |
</reference> | |
</catalogsearch_advanced_result> | |
</layout> |
This is worth adding too, as Magento seems to generate a lot of links to catalogsearch/advanced/?....
<!-- Advanced Search page -->
<catalogsearch_advanced_index>
<reference name="head">
<action method="setRobots"><value>NOINDEX,NOFOLLOW</value></action>
</reference>
</catalogsearch_advanced_index>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You might want also want to remove Popular Search Terms from the SERPs. You can do this by adding