Hello,
I apologize for the issue you are facing with the 404 error on your sitemap. It seems like there might be some lingering references to the old sitemap causing this issue.
To resolve this problem, you can follow these steps:
-
Rename the Sitemap File:
According to Google’s John Mueller, renaming the sitemap file can sometimes resolve issues. You can try renaming your sitemap file to a different name. In Google Search Console, go to Indexing → Sitemaps, add a new sitemap with a different name like `https://rankmath.com/kb/sitemap-404-error/ and click SUBMIT.
-
Check if Your Sitemap is Accessible:
Use a tool like httpstatus.io to check if your sitemap is accessible. Enter your sitemap URL and check the status to identify any issues preventing Googlebot from accessing it.
-
Exclude Sitemaps from Caching:
If your sitemap is being cached, exclude it from caching. You can refer to our tutorial on how to exclude Sitemaps from caching for detailed instructions.
-
Ensure Correct Submission:
Make sure you have submitted the correct sitemap (sitemap_index.xml
) to Google Search Console. Verify that all inner sitemaps, like post-sitemap.xml
, are showing up correctly when clicking on sitemap_index.xml
in Google Search Console.
By following these steps, you should be able to resolve the issues with your sitemap and eliminate the 404 errors. If the problem persists, feel free to provide more details or screenshots, and we’ll be happy to assist further.
Thank you for reaching out and raising this concern.
Sources:
Why the Sitemap_Index.xml is Throwing a 404 Error » Rank Math
Troubleshooting the “Couldn’t Fetch” Error in Google Search Console » Rank Math
Rank Math Sitemap Issues and Their Fixes » Rank Math
Indexed, Not Submitted in Sitemap – Google Search Console » Rank Math
how i can delete old sitemap permanently
Hello,
Thank you for your patience.
You can remove your submitted sitemaps by clicking the three-dotted button above
Once done, resubmit your main sitemap only by following the steps in this link:
https://rankmath.com/kb/submit-sitemap-to-google/
Hope that helps.
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.