: Why I see my page sitemap XML link in Google? I am using Yoast SEO plugin for my WordPress website. I am also using Yoast's XML Sitemap. Today I checked my pages in Google and found this
I am using Yoast SEO plugin for my WordPress website. I am also using Yoast's XML Sitemap. Today I checked my pages in Google and found this indexed by Google:
Title: example.com/ 2014-02-15T22:23:51+00:00 weekly 1 http ...
Link: example.com/page-sitemap.xml
Description: example.com/ 2014-02-15T22:23:51+00:00 weekly 1 example.com /contact/ 2014-02-06T13:47:35+00:00 weekly 0.8 example.com/blog/ ...
Any idea which caused this problem? I guess this is not good for my site SEO.
More posts by @Goswami781
1 Comments
Sorted by latest first Latest Oldest Best
If you want to remove the xml sitemaps as file from the Google search pages, you have to use the noindex header.
For example, if you create the sitemaps with php, use the following code:
header('X-Robots-Tag: noindex', true);
If your static xml files, you can send the header from the .htaccess file
<Files ~ ".xml$">
Header set X-Robots-Tag "noindex"
</Files>
For more information have a look at google developers
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.