Mobile app version of vmapp.org
Login or Join
Vandalay111

: Making my domain show up instead of my sitemap.xml in Google search results If I search Google for a term or my site name, Google returns the URL sitename.com/sitemap.xml on the first or second

@Vandalay111

Posted in: #Google #Seo #Serps #XmlSitemap

If I search Google for a term or my site name, Google returns the URL sitename.com/sitemap.xml on the first or second page of the results.

I want the main site to return in the results and not the sitemap.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Vandalay111

1 Comments

Sorted by latest first Latest Oldest Best

 

@Gloria169

To remove the sitemap.xml file from your SERP, follow the steps outlined here: Google Webmaster Tools - Completely remove an entire page

To prevent this from being indexed again, add X-Robots-Tag: noindex to the header response for the URL to your sitemap.xml in your web server configuration, as indicated here.

An example for a .htaccess file for Apache would be:

<FilesMatch "sitemap.xml">
Header set X-Robots-Tag "noindex"
</FilesMatch>

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme