My website has also redirecting to some virus site such as vpn. What’s this related to i couldn’t figure out. When i asked whether this related to hosting service they didn’t approve.
Hello,
Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.
The error you are encountering on your sitemap page, because most likely there is a 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
Once done, please try clearing your browser cache and check if the issue is resolved for you.
My website has also redirecting to some virus site such as vpn. What’s this related to i couldn’t figure out. When i asked whether this related to hosting service they didn’t approve.
In this case, 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.
Looking forward to helping you.
Thank you.
They didn’t solve my problem. Actually like i said this isn’t related to white spaces because i checked every single theme file and there is no space at the first line. Could you please specifically say or show me how can i fix this? This happened for no reason and some things always goes wrong in 2-3 months for the sitemap.
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/
Looking forward to helping you.
Thank you.
Hello,
Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.
If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.
Thank you.