No: ‘noindex’ detected in ‘X-Robots-Tag’ http header

#766133
  • Resolved Knowbrave18
    Rank Math free

    No: ‘noindex’ detected in ‘X-Robots-Tag’ http header – my site map is not adding in googl;e search consol

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    I’m sorry to hear that you are facing issues with your site map not being added to Google Search Console due to the ‘noindex’ detected in the ‘X-Robots-Tag’ HTTP header. To resolve this, you need to modify your website’s htaccess file or header.php to remove the ‘noindex’ directive from the X-Robots-Tag.

    Here is a snippet of code you can use to remove the ‘noindex’ directive for PDF files in the htaccess file:

    
    Header unset X-Robots-Tag
    

    After making this change, ensure that your site map is accessible and not blocked by any robots.txt rules. You can use tools like httpstatus.io to check if your site map is accessible.

    If you need further assistance or have any other questions, please feel free to reply here, and our support team will assist you promptly.

    Thank you for reaching out to us!

    Sources:
    Can I NoIndex PDF Files Using an SEO Plugin? » Rank Math
    Google URL Inspection API Integration in Rank Math
    Using Rank Math’s ‘Quick Actions’ Admin Menu Item
    How to Fix Submitted URL Marked ‘NoIndex’ Error » Rank Math
    Why Google Hasn’t Indexed Your Post, Page, and/or Website? » Rank Math

    Hello,

    Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.

    Can you please confirm if you’re inspecting your sitemap URL in your Google Search Console? If so, then it is normal. You’ll get the error if you inspect your sitemaps because, by default, sitemaps are set to Noindex as they are meant to be crawled and not to be displayed on search results pages.

    You should only submit your sitemap to the sitemap section of your GSC account and shouldn’t use the URL inspection tool for the sitemap URLs.
    https://rankmath.com/kb/submit-sitemap-to-google/

    Hope that helps and please don’t hesitate to let us know if you have any other questions.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘No: ‘noindex’ detected in ‘X-Robots-Tag’ http header’ is closed to new replies.