How to find broken links and redirects in your sitemap.xml
Sitemaps often drift out of date as pages are deleted, URLs are redirected, and noindex tags are added to listed pages. Search Console reports these problems slowly and only for pages Google has crawled. The article describes a simple shell script using curl to check each sitemap URL's status code and redirect count, while warning about limits such as nested sitemap indexes and redirect chains. It also lists existing tools, including Screaming Frog, lychee and linkchecker, and presents a paid cloud option, the Sitemap Link Checker on Apify, which adds redirect-hop tracking and noindex and canonical checks. The author discloses that they built that cloud tool.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in