Hello,
Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.
You seem to have defined a custom canonical for your your pages. In such a case, Rank math considers those as duplicate pages and they are therefore not added to sitemap. Since you have done this for all your pages, there are no pages added to the sitemap in which case the sitemap doesn’t have any content and hence the 404.
You will need to remove the canonical URLs you have added for your pages to be added to the sitemap.
Looking forward to helping you. Thank you.
Appreciate your response.
I just added the same url as canonical in all pages in order to send this signal to Google that all pages are unique and my website SEO is fine. Probably, the sitemap is based on www version and I added canonical non-www version to all pages.
Hello,
I am not sure if that solved your issue, did it? If not, we will be more than happy to continue helping you.
Looking forward to help 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.