Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
It seems like your website got infected by some malware as the sitemap you mentioned is not being generated by our plugin but is being hijacked by some malicious code on your website.
We recommend that you do a complete security audit on the website and hire a professional developer if you don’t know exactly how to do that.
Hope that helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
It’s clear I had a problem on rankmath code and caused more than one problem on it. It’s very likely I corrupted some file with “my experiments” rather than a virus or malware.
Could I reinstall rankmath source code without losing all settings?
Ty a lot and sorry.
Hello,
Yes, you can proceed with re-installing the plugin, the settings, and SEO data will not be removed upon re-install since all these data reside in your website’s database.
Also, 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/
Let us know how that goes.
I have redirection and htaccess and robot.txt problems too. Did a real trouble. 🙂
Hello,
At the moment, there are physical sitemap files in your website directory and this is overriding our dynamically generated sitemaps. (See screenshot in the sensitive data section).
Removing those XML files and following the steps here again should help you resolve the issue.
Hope that helps and please do not hesitate to let us know if you need my assistance with anything else.
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.