cancel
Showing results for 
Search instead for 
Did you mean: 

Prevent Search engines from indexing sitemap file

Prevent Search engines from indexing sitemap file

Hello,

How do we prevent search engines from indexing our XML sitemap file?

Any ideias?

Thanks!

 

 

3 REPLIES

Re: Prevent Search engines from indexing sitemap file

Hey @UNLda

You can use the following tag to achieve that:

 

X-Robots-Tag: noindex

 

Was my answer helpful? You can accept it as a solution.
200+ professional extensions for M1 & M2 with free lifetime updates!

Re: Prevent Search engines from indexing sitemap file

Could we add  <META NAME="robots" CONTENT="noindex"> on a XML file?

Re: Prevent Search engines from indexing sitemap file

Hi

 

I think you can add in robots.txt

Disallow: /sitemap.xml

See http://stackoverflow.com/questions/6552060/should-sitemap-be-disallowed-in-robots-txt-and-robot-txt-...

 

Can you tell us why you want to prevent sitemap indexing ? Does it show up in search engine results ?

Maxime Coudreuse, developer of Product Manager for Magento: User-friendly product editor with customizable grid interface and category tree for Magento 1 and 2