Skip to main content
Checks for sitemap URLs returning 4XX status codes
Rule IDcrawl/sitemap-4xx
CategoryCrawlability
ScopeSite-wide
Severitywarning
Weight6/10

Solution

Sitemaps should only list URLs that return 200 and are intended for indexing. Remove 4XX URLs from the sitemap or fix them by restoring the content or redirecting to a valid page. Keep sitemap entries clean to avoid wasting crawl budget.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["crawl/sitemap-4xx"]

Disable all Crawlability rules

squirrel.toml
[rules]
disable = ["crawl/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["crawl/sitemap-4xx"]
disable = ["*"]