MyBB Community Forums

Full Version: stop the sitemap created by google seo plugin being indexed by google
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I don't want the sitemap made by google seo plugin to be indexed by google
where and what edit should I make in order to achieve this?
You need to go to your robots.txt and deny googlebot from user-agent.
(2012-12-01, 05:29 PM)NNT_ Wrote: [ -> ]You need to go to your robots.txt and deny googlebot from user-agent.

That I know
but there is a method that can be implemented using .htaccess
I needed to know that one.
You could change the sitemap rewrite rule to this:

# Google SEO Sitemap:
RewriteRule ^sitemap\-([^./]+)\.xml$ misc.php?google_seo_sitemap=$1 [L,QSA,NC,E=NOINDEX:1]
Header set X-Robots-Tag "noindex" env=REDIRECT_NOINDEX

I might add the X-Robots-Tag to the next version of Google SEO.

But it's really not a problem whatsoever if Google indexes your sitemaps. It shows up for me if I search specifically for it (forum name sitemap index), and browsers display it - it never shows up in usual search queries, though.