Add Robots “NOINDEX,FOLLOW” to Your Contact Us Page

A lot of times you don’t want your ‘Contact Us’ page indexed by the robots, thereby making it easier for spammers and ‘sales pitch’ folks to contact you.

You can very easily add “NOINDEX,FOLLOW” to your ‘Contact Us’ page by editing one local xml file.

OPEN: app/design/frontend/DEFAULT/YOURTHEME/layout/local.xml

inside the <layout> section (and AFTER the </default> block), add the following section:

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

Refresh your configuration, layout and HTML cache

Your ‘Contact Us’ page will now show meta tag of <meta name=”robots” content=”NOINDEX,FOLLOW” />


Leave a Reply