squirrelscan
GitHub

Redirect Chains

Detects multi-hop redirect chains that waste crawl budget

Detects multi-hop redirect chains that waste crawl budget

Rule ID crawl/redirect-chain
Category Crawlability
Scope Site-wide
Severity warning
Weight 5/10

Solution

Each redirect hop adds latency and consumes crawl budget. Search engines may stop following after 5+ hops. Consolidate redirect chains to a single hop by updating the source URL to point directly to the final destination. Common causes: HTTP→HTTPS→www→trailing slash combinations, or legacy domain migrations.

Options

This rule supports the following configuration options:

Option Type Default Description
maxHops unknown undefined Flag redirect chains exceeding this many hops

Configuration Example

[rules."crawl/redirect-chain"]
maxHops = undefined

Enable / Disable

Disable this rule

[rules]
disable = ["crawl/redirect-chain"]

Disable all Crawlability rules

[rules]
disable = ["crawl/*"]

Enable only this rule

[rules]
enable = ["crawl/redirect-chain"]
disable = ["*"]

Type to search…

↑↓ navigate↵ openesc close