Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
Can you please follow these steps?
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/
That should fix the issue. Please let me know if that does not. We are here to assist.
Hi Anas,
I have tried your steps and it refreshed the sitemaps, but the issue is still there.
For instance, in https://thepoorswiss.com/post-sitemap1.xml, I can still see two entries:
- https://thepoorswiss.com/fr/assurance-menage-responsabilite-civile/
- https://thepoorswiss.com/assurance-menage-responsabilite-civile/
The first entry is correct while the second one is entirely invalid and results in a 404.
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress login in the designated Sensitive Data section.
Please do take a complete backup of your website before sharing the information with us.
It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:
https://wordpress.org/plugins/temporary-login-without-password/
You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):
https://wordpress.org/plugins/wp-security-audit-log/
We really look forward to helping you.
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
I tried conducting some troubleshooting and the issue persists.
Allow me to share this with our dev team. We should get back to you shortly.
We appreciate your time and patience on this one. Thank you.
Hello,
We debugged the issue and found that the page that is shown incorrectly on the sitemap seems to refer back to a page that is duplicated on the website.
You have two pages with the same exact values and different IDs (18355 and 18356).
If you check in the database inside the posts table you should be able to see that and removing the duplicate should clear the additional URL that is throwing the 404 error from the sitemap.
Don’t hesitate to get in touch if you have any other questions.
Thanks a lot for the investigation! I have deleted one of them and it’s now disappeared from the sitemap*
I have been able to identify more duplicate posts now! I will have to clean this up 🙁
I will check with WPML how the duplicate posts were created and if there is a simple way of cleaning them up.
Thanks!!!
Hello,
We are super happy that this resolved your issue.
If you 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.