I am working on an e-commerce website. I used to have a sitemap with category Ids, something like:
<url>
<loc>https://my-domain.com/home/browse/2/45/139</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://my-domain.com/home/browse/5/60/160</loc>
<changefreq>daily</changefreq>
</url>
In the above site map 2/45/139 represents a category:
fashion/women/tops-and-shirts
and 5/60/160 represents a different category:
sports/team-sports/football
Around 3 months ago, I decided to change my website's sitemap and use the category names instead of category Ids, so the new site map looks like this:
<url>
<loc>https://my-domain.com/home/browse/fashion/women/tops-and-shirts</loc>
<changefreq>daily</changefreq>
</url>
<url>
<loc>https://my-domain.com/home/browse/sports/team-sports/football</loc>
<changefreq>daily</changefreq>
</url>
I have submitted the new sitemap to Google months ago and everything is working... but every time I go to Google Search Console, I see Google is showing me errors about pages with old sitemap structure... or Google is adding random parameters to the url, e.g. page=59 and then complains that this page has error... it returns error because it does not exist!
How can I resolve these errors?