If a site has been running for many years, has undergone a change in CMS, catalog structure, or several major improvements, over time, URL garbage almost inevitably accumulates in it.
The old pages remain in the search, the redirection rules become outdated, some redirects begin to lead to 404, duplicates appear, and the sitemap ceases to reflect the real structure of the site.
What have you done
About 5,000 URLs were analyzed on one of the projects: we compared the pages from the Yandex search with the current sitemap, checked several thousand existing redirects, found old rules that already led to 404, identified more than 1300 broken URLs and selected relevant pages for them.
After that, we set up 301 redirects and a 301 -> 200 control check, cleaned it up robots.txt and sitemap, and also set up automatic canonical generation where there was none.
Where AI helps
Manually, such an audit would easily take several business days. With AI in the hands of a specialist, the basic processing, matching and control of thousands of URLs can be carried out in about a day.
The AI takes over the massive reconciliation and search for matches, and the specialist sets the rules, analyzes ambiguous cases and verifies the result.
Result
Instead of duplicates, 404s, and outdated redirects accumulated over the years, we get a clear URL structure, an up-to-date site map, and correct signals for search engines. For large old sites, it makes sense to carry out such technical cleaning at least once a year.