-
Dear support,
I have been using rankmath for few months now and i am facing an issue that i can’t solve. When i submit my sitemap on GSC it works well at the start and everything is green.
[moved to sensitive data section]
Can you help me to solve my problem? I am really worried and i can’t find a solution.
Thank you in advance for your help,
Best regards
-
Hello,
We apologize for the issue you are facing with your sitemap. It sounds like a frustrating situation, and we appreciate you bringing this to our attention.
When you encounter the "Cannot read sitemap" error for your sub-sitemaps, there are a few steps you can take to troubleshoot the issue:
-
Flush Permalinks: Sometimes, simply saving the permalinks in your WordPress dashboard can resolve issues with sitemap accessibility. Go to Settings → Permalinks and click Save Changes without making any changes.
-
Check Sitemap Configuration: Ensure that your sitemap is correctly configured. You can validate your sitemap using the Validate XML Sitemap tool to check for any errors.
-
Server Configuration: If you are using an Apache or Nginx server, ensure that the necessary rewrite rules are in place. For Apache, you may need to add specific rules to your
.htaccess
file, and for Nginx, you should check your Nginx configuration file for the appropriate rewrite rules.- For Apache:
# START of Rank Math Sitemap Rewrite Rules RewriteEngine On RewriteBase / RewriteRule ^sitemap_index.xml$ /index.php?sitemap=1 [L] RewriteRule ^([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L] RewriteRule ^([a-z]+)?-?sitemap.xsl$ /index.php?xsl=$1 [L] # END of Rank Math Sitemap Rewrite Rules
- For Nginx:
# START Nginx Rewrites for Rank Math Sitemaps rewrite ^/sitemap_index.xml$ /index.php?sitemap=1 last; rewrite ^/([^/]+?)-sitemap([0-9]+)?.xml$ /index.php?sitemap=$1&sitemap_n=$2 last; rewrite ^/([a-z]+)?-sitemap.xsl$ /index.php?xsl=$1 last; # END Nginx Rewrites for Rank Math Sitemaps
- For Apache:
-
Check for Plugin Conflicts: Sometimes, other plugins can interfere with the sitemap functionality. You can use the Health Check plugin to identify any potential conflicts.
-
Clear Cache: If you have caching enabled on your site, make sure to clear your cache after making any changes.
If these steps do not resolve the issue, please reply to this ticket, and a human agent from the Rank Math Support team will take over and assist you further.
Thank you for your patience, and we hope to help you resolve this issue soon!
Sources:
Rank Math Sitemap Issues and Their Fixes » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank MathThis is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Je rencontre toujours le même problème malgré les manipulations effectuées
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We checked your sitemap and we can see it is working properly without any issues.
In this case, please try to follow the steps below and see if that works for you:
1. Flush the Sitemap cache by following this video screencast:
https://i.rankmath.com/pipRDp2. 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 to your site to disable the transients cache for the sitemap:
add_filter( 'rank_math/sitemap/enable_caching', '__return_false');
Here’s how you can add filter/hook to your WordPress site:
https://rankmath.com/kb/wordpress-hooks-actions-filters/Once done, clear your website cache, remove all the submitted sitemap, and resubmit only the
/sitemap_index.xml
in the Search Console.If the issue persists, you can share a screenshot of the sub-sitemaps on your GSC account by using any image-sharing tool like https://imgur.com/upload so that we can check this further.
Let us know how it goes. Looking forward to helping you.
Ok thanks for the feedback. I did everything, let’s see if everything is still ok after few days. I’ll let you know.
Best regards
Hello,
Sure, let us know how this goes.
Meanwhile, if you have any other concerns, please don’t hesitate to contact us anytime so we can assist you further.
Looking forward to helping you.
After few days the error came back -> https://imgur.com/a/aoV22Pm
Hello,
Please click on the
/page-sitemap.xml
and share a screenshot of the page so that we can check the issue further for you.Looking forward to helping you.
Thank you.
Here is what i have when i click on it -> https://imgur.com/a/5QmG2kB
Hello,
The last read date for your page-sitemap is not updated.
Please give some time for Google to recrawl your page-sitemap and the “Last read” date should be updated as well as your other sub-sitemaps.
Looking forward to helping you.
Ok i will wait a little bit until it is updated and i’ll let you know
Hello,
We anticipate hearing back from you.
Don’t hesitate to reach out if you need our assistance with anything else.
Thank you.
For now nothing has changed, still get the same error. Let’s see if anything happens in the future days
Got some news. Another sub sitemap is having the same problem now.
https://imgur.com/a/VysQJjhHello,
The last read date of the sitemap has not been updated.
Please remove all the submitted sitemaps and resubmit only this one: https://vegourmet.fr/?sitemap=1 in the Search Console, and see if that works for you.
Let us know how it goes. We look forward to hearing from you.
Thank you.
Looking forward to helping you.
I did it already. If you checked the whole ticket i resubmit the sitemap and everything was in green. But after few days one of the sub sitemap failed, and now another one. It happens like every time and i dont want to spend my time resubmitting sitemaps. Do you have a solution for me?
-
You must be logged in to reply to this ticket.