Plugin support

#1035334
  • Resolved clare recipes
    Rank Math free

    I’m experiencing an issue with my sitemap https://claresrecipes.com/category-sitemap.xml not being indexed in Google Search Console.

    After checking with my host (Cloudways), we confirmed that the HTTP response for this file includes:

    makefile
    Copier
    Modifier
    X-Robots-Tag: noindex
    This is preventing Google from indexing the sitemap.
    I’ve verified all the Rank Math settings (Global Meta, Category settings, Robots Meta options), and everything is set to index, follow.

    Cloudways found that “noindex” appears in this file:
    wp-content/plugins/seo-by-rank-math/includes/admin/class-admin-bar-menu.php,
    but confirmed it’s part of Rank Math logic.

    Can you please confirm if Rank Math is injecting this header, and how I can remove or override it for the sitemap to be indexable?

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

    I apologize for the issue you are facing with your sitemap not being indexed in Google Search Console. It seems that the X-Robots-Tag: noindex header is indeed preventing Google from indexing your sitemap.

    To resolve this issue, you can try the following steps:

    1. Check for Custom Code: Ensure that there are no custom codes or settings in your theme or other plugins that might be adding the noindex directive to your sitemap.

    2. Add a Filter: You can add a filter to your theme’s rank-math.php file to ensure that caching is disabled for the sitemap. Here’s how to do it:

      • Navigate to WordPress Dashboard → Appearance → Theme File Editor.
      • Select the rank-math.php file from the right sidebar.
      • Add the following code:
        add_filter( 'rank_math/sitemap/enable_caching', '__return_false' );
      • Click on the Update button to save your changes.

      Add filter

    3. Clear Cache: After making these changes, make sure to clear your website cache and check if the sitemap is now accessible without the noindex header.

    4. Check Robots.txt: Ensure that your robots.txt file does not have any rules blocking the sitemap. You can check this in Rank Math SEO → General Settings → robots.txt.

    If you continue to experience issues after trying these steps, please reply to this ticket with any additional details, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    Rank Math Sitemap Issues and Their Fixes » Rank Math
    How to Fix "Incorrect HTTP Header Content-Type" Error in Sitemaps » Rank Math

    Hello,

    We’ve already replied to your other ticket on this issue. Please refer to this ticket:
    https://support.rankmath.com/ticket/plugin-support-3/?view=all

    We are closing this ticket to avoid duplicate replies.

    Looking forward to helping you there.

    Thank you.

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

The ticket ‘Plugin support’ is closed to new replies.