Check the status code of all sitemap.xml URLs in parallel
check sitemap for 404 errors | sitemap contains redirects | status codes of all sitemap urls | find broken urls in sitemap | curl | sitemap | xargs | status-code | seocurl -s https://example.com/sitemap.xml | grep -oP '(?<=<loc>)[^<]+' | xargs -P 8 -I{} curl -o /dev/null -s -w '%{http_code} %{url_effective}\n' {} | grep -v '^200 ' | sortChecks all sitemap URLs with several concurrent requests and lists only those deviating from 200, with their status code. A clean sitemap contains only indexable pages with status 200, redirects and error pages in it waste crawl budget. No output means everything is fine.
Note: Choose the parallelism carefully, on weak servers or behind a WAF too many concurrent requests trigger blocks. For an arbitrary URL list from a file, replace curl -s ... | grep with cat datei.txt.
Also searched as
- check sitemap for 404 errors
- sitemap contains redirects
- status codes of all sitemap urls
- find broken urls in sitemap