Hello,
We apologize for the issue you are facing with the sitemap links. It seems that the sitemap is not correctly reflecting the posts from your WordPress installation in the subfolder.
Here are a few steps you can take to troubleshoot this issue:
-
Flush Permalinks: Go to your WordPress admin area, navigate to Settings → Permalinks, and hit the “Save Changes” button. This can often resolve issues with sitemap generation.

-
Check for Plugin Conflicts: Use the Health Check plugin to determine if there is a conflict with another plugin that might be affecting the sitemap.
-
Sitemap Settings: Ensure that your posts are set to be included in the sitemap. You can check this by going to Rank Math SEO → Sitemap Settings and ensuring that all post types you want included are checked.
-
Custom Canonicals: If you have set custom canonical URLs for your posts, they may not appear in the sitemap. Consider removing those custom canonicals to see if it resolves the issue.
-
Check Redirects: Since you have a permanent redirect from the root domain to the subfolder, ensure that this is correctly configured and not causing any issues with how Rank Math generates the sitemap.
If these steps do not resolve the issue, please reply to this ticket with any additional details or errors you may be encountering, and a human agent from our support team will assist you further.
Thank you for bringing this to our attention!
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We’ve checked your sitemap and it seems like your website got infected by some malware as the sitemap files are not being generated by our plugin but are 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.
Please don’t hesitate to let us know if you have any other questions.
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.