Skip to content
Quasar Tools Logo

How to Run a Broken Link and Error Audit

How to run a complete broken link and error audit: find internal 404s, external dead links, redirect chains, canonical issues, and sitemap errors — step by step.

DH
Tutorials & How-Tos12 min read2,750 words

Broken links, dead anchors, redirect chains, and canonical conflicts are among the most common — and most overlooked — technical SEO problems on established websites. They accumulate silently as pages are renamed, deleted, or restructured, and they cost you crawl budget, link equity, and user experience simultaneously. This guide walks through every error type you need to find, the right tool for each, and how to prioritise fixes so the highest-impact problems get addressed first.

5Error categoriesinternal, external, redirects, canonical, sitemap
< 1sPer-page analysisbrowser-local, no crawl needed
100%Privacyno HTML uploaded to servers

Types of errors to audit

A complete broken link and error audit covers five distinct problem categories. Each category requires a different tool and produces different types of fixes. Understanding the full scope before you start prevents the common mistake of treating a broken link audit as simply "find dead URLs" — there are four other error types that are equally damaging and often missed.

The five error categories

  • Broken internal links: Links between pages on your own site that point to deleted, renamed, or moved pages, including broken anchor fragment links (`#section-id`).
  • Broken external links: Outbound links to third-party URLs that return errors, are malformed, use HTTP instead of HTTPS, or point to domains that have expired.
  • Redirect chains and loops: URLs that redirect through multiple intermediate hops (chain) or that redirect in a cycle (loop), wasting crawl budget and degrading link equity.
  • Canonical conflicts: Pages with canonical tags pointing to the wrong URL, using relative paths, referencing non-HTTPS targets, or self-referencing incorrectly.
  • Sitemap and robots.txt errors: Sitemaps that include noindex pages, malformed XML, invalid URLs, or missing required elements; robots.txt files with directives that block key pages.
Error typeSEO impactUser impactFix complexity
Broken internal linksHigh — wastes crawl budget, breaks PageRankHigh — 404 page shownLow — update href or add redirect
Broken fragment anchorsMedium — confuses crawlers, breaks ToCMedium — page loads, scroll failsLow — update anchor ID
Broken external linksMedium — quality signal degradedMedium — external 404Medium — find replacement URL
Redirect chains (3+ hops)Medium — PageRank dilution per hopLow — usually transparentMedium — consolidate to direct 301
Canonical conflictsHigh — incorrect page may be indexedNone — invisible to usersLow — fix canonical href
Sitemap errorsHigh — crawlers may miss pagesNone — invisible to usersLow — fix XML structure

A broken link audit is not a one-time task — it is a recurring quality check that should run after every significant content change and every deployment.

Technical SEO fundamentals

Redirect chains and canonical issues

Redirect chains and canonical tag conflicts are two of the most impactful technical SEO errors because they directly affect which page Google decides to index and how much link equity each page accumulates. Neither error produces a visible user-facing problem — both are invisible to visitors — which is why they persist on sites for months or years without being noticed.

Detecting and fixing redirect chains

A redirect chain forms when a URL has a redirect that itself redirects, creating a sequence of hops before reaching the final destination. Google's crawlers follow chains up to a limit, but each additional hop reduces the PageRank passed from the original URL to the destination. A chain of three redirects passes measurably less equity than a single direct 301.

The Redirect Chain Checker analyses your redirect map or server logs and identifies chains longer than a single hop, redirect loops (URL A → B → A), and mixed HTTP/HTTPS sequences. The fix for a chain is always to update the source to redirect directly to the final destination URL, bypassing all intermediate steps.

Canonical tag audit

A canonical tag tells search engines which version of a page is the preferred one for indexing. Common canonical errors include: a page canonicalising to a URL that does not exist, a canonical tag using a relative path rather than an absolute URL, the canonical pointing to an HTTP URL when the site is HTTPS, and a page canonicalising to a different page that itself canonicalises back — a canonical loop. Any of these can cause Google to index the wrong version of a page or to distrust the canonical signal entirely.

The Canonical URL Checker validates canonical tags and URL mappings for all of these conflict patterns. Run it on any page where you suspect indexing problems, on all paginated series pages (which commonly have misconfigured canonicals), and on any page that has been migrated from an old URL.

Warning

Never set a canonical tag on a page that has a `noindex` robots directive. The two signals are contradictory — you are simultaneously saying "the canonical version of this page is X" and "do not index this page." Google treats this as a conflict and may ignore the canonical signal entirely, leading to unexpected indexing behaviour.

Sitemap and robots.txt audit

Your sitemap tells search engines which pages exist and should be crawled. Your robots.txt tells crawlers which paths they are allowed to access. Both files are simple in principle but surprisingly easy to misconfigure — and errors in either can result in important pages being ignored or, worse, actively blocked.

What to check in your sitemap

  • Noindex pages included: Any URL in the sitemap that also has a `noindex` robots directive sends a contradictory signal. Remove noindex pages from the sitemap.
  • HTTP URLs in an HTTPS site: Every URL in your sitemap should use the HTTPS protocol. An HTTP URL in a sitemap on an HTTPS domain causes the crawler to follow a redirect on every crawl of that URL.
  • 4xx and 5xx URLs: Sitemaps should only contain live, accessible pages. A broken URL in the sitemap wastes crawl budget every time Googlebot checks it.
  • Missing required elements: The sitemap protocol requires a `&lt;urlset&gt;` wrapper and `&lt;loc&gt;` elements for every URL. Missing these elements renders the sitemap unparseable.
  • Exceeding the 50,000 URL limit: A single sitemap file cannot contain more than 50,000 URLs. Use a sitemap index file and multiple chunk files for larger sites.

The Sitemap XML Validator checks all of these structural and protocol compliance issues from a paste of your sitemap file. No URL is fetched — the validation is entirely structural, which makes it safe for sitemaps containing internal URLs you do not want to expose. For sitemaps that are over the size limit, the Sitemap Index Splitter chunks the file into compliant pieces and generates the index file automatically.

robots.txt audit

The robots.txt Disallow directive is a blunt instrument — a single misconfigured rule can block an entire section of your site from being crawled. The most common robots.txt errors are: a `Disallow: /` directive that blocks the entire site (often left over from a staging environment), blocking CSS or JavaScript files that Google needs to render pages, and conflicting Allow/Disallow rules where the more restrictive rule takes precedence unexpectedly.

The Robots.txt Validator checks your robots.txt file for syntax errors, invalid directives, path issues, and structural best practices. Paste the file content — it never requires a live fetch of your domain — and the validator reports every issue with a plain-language description of the potential impact.


Warning

A `Disallow: /wp-admin/` rule intended to block the admin area will also block any URL path that begins with `/wp-admin/` — including URLs you may have named with that prefix for other purposes. Test every Disallow rule against your actual URL structure using Google Search Console's robots.txt tester or the Quasar Tools Robots.txt Validator before deploying changes to production.

Audit workflow and prioritisation

A broken link and error audit generates findings across five categories, and not all findings are equal. Trying to fix everything simultaneously is impractical on any site larger than a few dozen pages. A prioritised workflow focuses effort on the errors with the highest SEO and user experience impact first, working down to lower-priority cleanup over subsequent sprints.

  1. Fix broken internal links on high-traffic pages and navigation menus — these affect both users and PageRank distribution immediately.
  2. Fix canonical conflicts on your most important pages — incorrect canonicals cause the wrong URL to be indexed, directly displacing your target page from rankings.
  3. Consolidate redirect chains to single-hop 301s — this recovers PageRank that is currently being diluted across the chain.
  4. Update or remove broken external links — lower urgency than internal issues but a measurable quality signal.
  5. Fix sitemap errors — ensures newly published pages are discovered efficiently.
  6. Fix robots.txt errors — critical if any blocking is suspected, otherwise lower urgency than the above.

Building a recurring audit schedule

For sites publishing content regularly, a monthly audit cadence catches accumulation before it compounds. For sites undergoing migrations or redesigns, run an audit immediately before the change to establish a baseline and again immediately after to verify every redirect is in place. Integrating automated checks into your deployment pipeline catches newly introduced broken links before they reach production — most CI/CD frameworks support simple URL validation scripts that can run as a post-deployment step.

A broken link audit is one component of a broader technical SEO review. Once link and redirect issues are resolved, extend the audit to cover meta tags with the Meta Tag Analyzer tools, structured data validity with the Structured Data Validator, and HTML quality with the HTML Validator. These four checks together cover the most common technical SEO issues that prevent well-written content from ranking at its potential.

Tip

Keep a simple spreadsheet log of every audit: date, pages checked, errors found, and fixes applied. Over time this log reveals which pages accumulate broken links most frequently — usually pages that link heavily to external sources in a fast-moving niche — and lets you prioritise them for more frequent checks.

Key takeaways

  • A complete broken link audit covers five error types: internal links, external links, redirect chains, canonical conflicts, and sitemap/robots.txt errors — each requires a different tool.
  • Broken internal links waste crawl budget and interrupt PageRank flow; fix them starting with your highest-traffic pages and navigation menus.
  • Use the Broken Internal Link Checker to detect fragment anchor failures (#section-id links) that standard crawlers miss.
  • Redirect chains longer than one hop dilute PageRank — use the Redirect Chain Checker and consolidate every chain to a single direct 301.
  • Canonical conflicts cause the wrong page version to be indexed — the Canonical URL Checker catches relative paths, non-HTTPS targets, and canonical loops.
  • Validate your sitemap with the Sitemap XML Validator to remove noindex pages, HTTP URLs, and broken endpoints before they waste crawl budget.
  • Run a broken link audit after every significant content change, URL restructure, or site migration — errors compound silently and are cheapest to fix immediately.

Frequently Asked Questions

A broken link audit is a systematic review of every link on a website — both internal links between your own pages and external links pointing to third-party URLs — to identify any that return an error (typically a 404 Not Found), are malformed, or lead to a redirect chain rather than the intended destination. The audit also covers fragment anchors (#section-id links), which break silently in browsers and crawlers when the target ID has been removed or renamed.

Broken links hurt SEO in three ways. First, they waste crawl budget — Googlebot follows every link it finds, and each 404 response consumes crawl quota that could have been spent on indexable pages. Second, internal broken links break the PageRank flow across your site: link equity cannot pass through a dead endpoint. Third, a high density of broken links on a page is a quality signal that can depress the page's rankings, especially when the broken links point outward to important references.

A broken internal link points to another page or anchor on your own website that no longer exists or has a different ID. It is fully within your control to fix. A broken external link points to a third-party URL that returns an error — a site that went offline, a resource that was deleted, or a URL that was restructured without a redirect. External broken links are harder to fix because you depend on the third-party domain, but you can replace them with archived versions or updated sources.

A redirect chain occurs when a URL redirects to a second URL, which redirects to a third, and so on — rather than redirecting directly to the final destination. Each hop in the chain adds latency and causes Googlebot to spend additional crawl budget on intermediate URLs. Google generally follows redirect chains, but PageRank dilution has been observed across each additional hop. The rule of thumb is to limit redirect sequences to a single hop wherever possible, and never more than two.

For individual pages, paste the HTML into the Quasar Tools Broken Internal Link Checker and Broken External Link Checker — both tools analyse links without any server-side processing. For a full-site crawl, tools like Screaming Frog SEO Spider (desktop), Ahrefs Site Audit, or the free Broken Link Check service crawl every page and report all 4xx and 5xx responses. For large sites, use a combination: a crawler for discovery and the Quasar Tools validators for deep per-page analysis of fragment links.

Fix them where possible — find a replacement URL that serves the same reference purpose and update the link. If no replacement exists, removing the link is better than leaving a broken one. For high-authority sources that have gone offline, check the Wayback Machine (web.archive.org) for an archived version and link to that instead. Dead external links are not as damaging as dead internal links, but they are a quality signal, and fixing them also improves the user experience for visitors who click the link.

A sitemap audit should verify that every URL in the sitemap is accessible (not returning a 4xx or 5xx), that all URLs use the correct protocol (HTTPS), that the XML structure conforms to the sitemap protocol (urlset, loc, changefreq, priority, lastmod), and that the sitemap does not include pages with noindex directives. Including noindex pages in a sitemap sends a contradictory signal to crawlers. The Quasar Tools Sitemap XML Validator checks all of these structural and protocol compliance issues from a paste of your sitemap file.

For active websites that publish new content regularly, a monthly audit is a reasonable minimum. For sites undergoing a migration, redesign, or URL restructure, run an audit immediately before and immediately after the change — before to create a baseline, and after to verify every redirect is in place. For large e-commerce or news sites with thousands of pages, integrate automated broken link checking into your CI/CD deployment pipeline so any newly introduced broken link is caught before it reaches production.

ShareXLinkedIn

Related articles