x-robots-tag: noindex on sitemap_index.xml removal

#1118991
  • Resolved Henry Nguyen
    Rank Math free

    Hello Rank Math Support,

    My main sitemap (https://hydroathome.be/sitemap_index.xml) currently has the x-robots-tag: noindex header.

    I understand that this is the default behavior in Rank Math, but I want this sitemap to be indexable, so that Google can include the URL in search results.

    I followed the suggestion from Reinelle on your support page:
    https://support.rankmath.com/ticket/change-tag-to-no-index-to-index/

    This method uses code to remove the noindex, but it does not work in my setup.

    Could you advise the correct way to make the sitemap_index.xml indexable, or is there another method to remove the noindex from my sitemap?

    Thank you for your help!

Viewing 1 replies (of 1 total)
  • Hello,

    We apologize for the issue you are facing with the x-robots-tag: noindex header on your sitemap. To make your sitemap_index.xml indexable, you can try the following steps:

    1. Check Your Robots.txt File: Ensure that there are no rules in your robots.txt file that might be blocking the sitemap. You can check this by going to Rank Math SEO → General Settings → robots.txt.

    2. Remove Custom X-Robots-Tag: If you have added any custom code to your theme or server configuration that sets the x-robots-tag to noindex, you will need to remove that. This could be in your .htaccess file or server settings.

    3. Use the Following Code: If you haven’t already, you can add the following code to your theme’s rank-math.php file to ensure that caching is disabled for the sitemap:

      add_filter( 'rank_math/sitemap/enable_caching', '__return_false' );

      This will help ensure that any caching issues are resolved.

    4. Check for Plugin Conflicts: Sometimes, other plugins may interfere with the sitemap settings. You can use the Health Check plugin to identify any potential conflicts.

    5. Contact Your Hosting Provider: If the above steps do not resolve the issue, it may be worth reaching out to your hosting provider to ensure there are no server-level settings affecting the x-robots-tag header.

    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:
    Can I NoIndex PDF Files Using an SEO Plugin? » Rank Math

    This is an automated reply from Rank Math Support Bot. If you need further assistance, please reply to this topic and a human support agent will reply to you shortly.

    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 1 replies (of 1 total)

The ticket ‘x-robots-tag: noindex on sitemap_index.xml removal’ is closed to new replies.