Hello,
Thank you for contacting Rank Math, and sorry for any inconvenience caused.
The error on your sitemap page suggests there must be some white spaces before the XML Sitemap’s source code.
Please follow this troubleshooting guide to fix that issue:
https://rankmath.com/kb/fix-sitemap-issues/#xml-text-declaration
I hope this helps.
Looking forward to helping you.
Hello,
I try remove white space in wp-config.php
This file starts with <?php and end with ?> : no other characters..
I try remove white spaces in functions.php and I try changing theme using generate press. Nothing happen !
I try deactivate all plugins
No change !
I don’t know from where it is coming…
Anyway, the first strange behavior is that sitemap contains only 1 url…
Any idea to help me ?
Hello,
We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WordPress & FTP logins 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.
Thanks for your proposal.
I finally solve by creating a sitemap in php through my child theme
François
Hello,
We are glad that you were able to resolve the issue.
Please don’t hesitate to get in touch in case you need any other assistance.
Thanks.
Hello,
You’re welcome! 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.