Hi Paul,
Thanks for getting in touch with us.
Please open the seo-by-rank-math
folder using FTP and delete all the files inside sitemap-cache
folder.
That will update the sitemap cache and remove the deleted pages from the sitemap.
If you would rather disable cache using PHP code, you can use this filter: https://rankmath.com/kb/filters-hooks-api-developer/#enable-disable-sitemap-cache
Make sure to change true
to false
to disable cache.
Hope that helps and please do not hesitate to let us know if you need our assistance with anything else.
Hi, I’m having the same problem, my Sitemap is giving an error.
Sitemap could not be read
General HTTP error
1 instance
We encountered an error while trying to access your Sitemap. Please ensure your Sitemap follows our guidelines and can be accessed at the location you provided and then resubmit.
Examples
HTTP Error:
404
When I go to the folder you mention to delete cache, there is nothing in there. Can you help, please?
Thanks
“Problem Fixed”. I just went to WordPress Settings-Permalink and Clicked Save Changes and problem solve.
Hello,
We are super happy that this resolved your issue. If you have any other questions in the future, know that we are here to help you.
If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
Thank you.