Skip to main content
Detects links returning 404 or 5xx errors
Rule IDlinks/broken-links
CategoryLinks
ScopeSite-wide
Severityerror
Weight7/10

Solution

Broken links hurt user experience and waste crawl budget. Regularly audit links using tools or crawlers. Fix or remove broken links. Set up 301 redirects for moved content. For external links, consider using nofollow and regularly verifying they still work. Implement custom 404 pages that help users find content.

Enable / Disable

Disable this rule

squirrel.toml
[rules]
disable = ["links/broken-links"]
squirrel.toml
[rules]
disable = ["links/*"]

Enable only this rule

squirrel.toml
[rules]
enable = ["links/broken-links"]
disable = ["*"]