ScanFix/Knowledge Base/technical
high Severity
technical

Broken Internal or External Links (404 Not Found)

Anchor <a> tags on the page point to URLs that return HTTP 404 Not Found or connection errors.

Why This Issue Matters

Broken links severely frustrate users, halt conversion funnels, and cause search engine crawlers to waste crawl budget.

How to Fix This Issue in Code

Ready to copy
Next.js / React (App Router)
// Use Next.js Link component with validated routes
import Link from 'next/link';

export default function Nav() {
  return <Link href="/pricing">Pricing</Link>; // Ensure target route exists in app/
}
Standard HTML5
<!-- Verify href destination is accurate -->
<a href="/pricing" rel="noopener">Pricing</a>
WordPress / PHP
// Use the Redirection plugin or add a 301 redirect in .htaccess
Redirect 301 /old-broken-page https://example.com/new-page

Frequently Asked Questions

How does ScanFix detect broken links?

ScanFix crawls all internal and external anchor tags on the page and tests the HTTP status code of each target link.

Check your website for broken internal or external links (404 not found)

Run an instant audit with ScanFix to detect this defect and other quality gaps across your pages.