Siemap.xml appearing in SERP
-
My sitemap.xml was appearing in the google serp for certain keywords (& not my actual page onsite). Please see image.
I recently blocked my sitemap.xml with a robots.txt exclusion but now the sitemap.xml is not getting crawled in google webmaster. Is this the correct method of excluding the sitemap.xml for the serp?
User-agent: * Disallow: /assets/cache/ Disallow: /assets/docs/ Disallow: /assets/export/ Disallow: /assets/import/ Disallow: /assets/modules/ Disallow: /assets/plugins/ Disallow: /assets/snippets/ Disallow: /manager/ Disallow: /sitemap.xml Sitemap: http://bryansryan.ie/sitemap.xmlAny suggestions what should be done here? thanks.
-
Is it ranking for some keywords or did you simply search for you sitemap? In that case I really dont see the problem. Then I rather google indexed my sitemap.
-
from the image you will see I googled - Kyocera Black and White Printers but the sitemap.xml is coming up in the SERP and not my actual page. It's pointless having the sitemap.xml appear in the SERP.
-
you could try blocking via x-robots in the htaccess file: