Support » Plugin: XML Sitemaps » How to noindex the sitemap.xml file?

Viewing 2 replies - 1 through 2 (of 2 total)
  • You can do this by adding below code to your .htaccess file

    <IfModule mod_rewrite.c>
      <Files sitemap.xml>
       Header set X-Robots-Tag "noindex"

    Change sitemap.xml with the name of your XML sitemap.

    I have a related question. My client was messing around with the Google XML site map V3 for QTranslate plugin and he unchecked one of the basic default options. The effect “seemed” positive, but I’d like to know what it really means/does. Prior to this the site was showing the robots.txt message, not the Meta description for the site and, he said ten minutes after he’d made the change, it showed up.

    He unchecked the basic default setting:
    __ Add sitemap URL to the virtual robots.txt file.
    The virtual robots.txt generated by WordPress is used. A real robots.txt file must NOT exist in the blog directory!
    See background below.

    Is that the right choice, or wrong? or what is the effect of unchecking this box.

    We had been working on the site for a few weeks with the privacy settings set to discourage search engines form indexing or showing the site. When we were done, I unchecked the privacy settings. then linked to the new site from my site, and did a few other things to essentially signal google to re-index the site, so it would show the meta description etc. I know it can take from 3 days to three weeks for this change to occur.

    Over the weekend, my client changed that option as noted above and said that right afterwards, the site (which had been showing the robots.txt privacy message in google) switched and showed up with the meta description as we want it to.

    I’m wondering if it was just coincidental, or what the best option is?
    the site is

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to noindex the sitemap.xml file?’ is closed to new replies.