Hello,
We apologize for the issue you are facing with the post sitemap not loading correctly in Google Search Console. Since the post sitemap appears to be working when accessed directly in your browser, there could be a few reasons why Google Search Console is returning an HTTP error.
Here are some steps you can take to troubleshoot this issue:
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with how sitemaps are generated or accessed. You can use the Health Check plugin to identify any potential conflicts.
-
Verify Robots.txt Settings: Ensure that your robots.txt
file is not blocking access to the post sitemap. You can check this by going to Rank Math SEO → General Settings → robots.txt.
-
Check Server Configuration: If you are using Nginx or Apache, ensure that the server is configured correctly to handle the sitemap requests. For Nginx, you may need to add specific rewrite rules as mentioned in our documentation. For Apache, similar rules should be added to your .htaccess
file.
-
Clear Cache: If you are using a caching plugin, clear the cache and try re-submitting the sitemap in Google Search Console.
-
Rename the Sitemap File: As a last resort, you can try renaming the sitemap file in Google Search Console by submitting it as `https://rankmath.com/kb/fix-sitemap-issues/#blank-page to see if that resolves the issue.
If these steps do not resolve the problem, please reply to this ticket with your site URL so that a human agent from our support team can assist you further.
Thank you for raising this concern, and we hope to help you resolve it soon!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Hello,
Thank you for your query and we are so sorry about the trouble this must have caused.
We checked your post sitemap and it seems to be working just fine when we visit the sitemap in the browser.
Please follow the steps below:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp
2. Exclude the Sitemap files of the Rank Math plugin in your caching plugin. The cache could be via a plugin or from the server. For plugins or Cloudflare, please follow this article:
https://rankmath.com/kb/exclude-sitemaps-from-caching/
3. Apply the following filter code to your site.
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter to your WordPress site:https://rankmath.com/kb/wordpress-hooks-actions-filters/
4. Remove all your sitemaps from your Google Search Console and re-submit only the index sitemap (https://website.com/sitemap_index.xml
).
Let us know how that goes. Looking forward to helping 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.