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:
-
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.
-
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.
-
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.
-
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.
-
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.