Skip to content
GetAllAPIs
APIsPricingNetworkDocsPlaygroundFree tools
Dashboard Get started
APIsPricingNetworkDocsPlaygroundFree toolsDashboardGuidesFAQ Get started

Guides

  • Audit a website from an AI agent over MCP
  • How to read an audit report
  • Find competitor topic gaps from public sitemaps
  • robots.txt, noindex or canonical: which one to use
  • SEO checks before and after a site migration
  • Fix broken internal links and redirect chains
Home / Guides / Fix broken internal links and redirect chains

Fix broken internal links and redirect chains

Updated 2026-11-17

Broken links and redirect chains usually come from the same event: a URL changed and not everything that pointed at it was updated.

Fix in this order

  1. Pages that error but should exist. Restore them or redirect them to the right replacement. One redirect fixes every link pointing at that URL, internal and external.
  2. Links in templates. Menus, footers and sidebars repeat on every page, so one bad link there can account for most of the count. The evidence lists the source page of each broken link; if the same target appears on every page, look at the template.
  3. Links in content. Edit individually, or search the database for the old path.
  4. Internal links to redirects. Lower priority: update them to the final URL so crawlers skip the hop, but keep the redirect for the outside world.

Collapsing redirect chains

A chain appears when redirects are layered over time: http to https, bare to www, old path to new path. Write one rule per legacy variant that points straight at the final URL. Test with curl -sIL and count the location lines.

Preventing new ones

  • When a page moves, add the redirect in the same change.
  • Generate menus and sitemaps from your page list instead of typing URLs.
  • Re-audit after each release; the relevant findings are broken internal links, internal redirects and homepage redirect chain.

The crawler samples pages (15 by default) and HEAD-checks links it finds on them, so a clean report means the sampled sections are clean, not that every page on a large site was checked.

Run the full audit on your site. One call checks every item in the check reference and ranks the fixes.

Open the playground Endpoint details

Product

  • API catalog
  • Pricing
  • Site audit
  • Playground
  • Dashboard
  • Network

Free tools

  • All free tools
  • Title & description checker
  • robots.txt tester
  • Sitemap validator
  • hreflang checker
  • Heading outline
  • Structured data checker
  • Social preview
  • Indexability checker

Learn

  • Guides
  • Check reference
  • Use cases
  • Compare
  • Glossary

Developers

  • Docs
  • Quickstart
  • MCP server
  • Agent guide
  • llms.txt
  • OpenAPI

Company

  • About
  • FAQ
  • Changelog
  • Data sources
  • Contact
  • Security

Legal

  • Terms of Service
  • Privacy Policy
  • Refund Policy
  • Acceptable Use
  • Data Processing
GetAllAPIs © 2026 Mohamed Outerbah · [email protected]