My sitemap recently started showing up in search results. How can I set it to "noindex"?
Google suggests a meta tag or HTTP response header, but I have no idea how to do that.
X3 Photo Gallery Support Forums
https://www.thewebmaster.com/sitemap-in ... ty-issues/I think it is worth clarifying that your sitemap showing up as indexed is not an issue. The issue is when the sitemap shows in the search results when you type in a keyword relating to your site’s content.
<filesMatch "(sitemap\.xml|sitemap)">
Header set X-Robots-Tag "noindex"
</filesMatch>
To me, it kinda looked like the Google guy didn't really have a great explanation, and just came up with that as their best response.metallissimus wrote:Thank you for the link, interesting read. I simply can't understand how Google came to the conclusion the sitemap was more relevant to "Businessporträts Offenburg" than the actual page for exactly that:
I am guessing this could be relevant. Google know that sitemap.xml is an XML file, and also the data-based sitemap, and should under most circumstances never list it in search (what would be the point?). However, an url /sitemap/ could be something else, like an actual web page created for humans with text content formatted for humans. X3 uses a sitemap.xsl, which is kinda like CSS for XML, so the output is better formatted for humans ... This might make Google (when it sees the page) to think that it's a "normal" page (although technically, it's still XML). It's still unusual that it gets indexed, but my thoughts.metallissimus wrote:Google actually lists /sitemap/ and not sitemap.xml.
Can't currently find it for the specified search. Can only find it under "site:danielbollinger.de sitemap".metallissimus wrote:For whatever reason it ranks for "Businessporträts Offenburg" somewhere around 25th place. I already asked for removal in the Google Search Console, so maybe you won't be able to find it.
Agreed.metallissimus wrote:I just don't want potential costumers to land on such an obscure part of my website when they want something else.