Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Fix a broken link at its source if the intended page still exists. If the page moved, redirect its old URL to a genuinely relevant replacement; if it was removed and no equivalent page exists, leave it returning a real 404 or 410. The right repair depends on what happened to the destination—not simply on the fact that a URL returns an error.

First, identify what is broken

Find the failing URL, then determine whether the destination is still live, has moved, or has been intentionally removed. Also identify where the link came from: a page on your site, a sitemap, or another source. This distinction prevents unnecessary redirects and helps separate links you can correct from URLs that should no longer exist.

If Google Search Console reported the URL, review the report’s discovery details to see where Google found it. Check your sitemap if the URL may have been submitted there. For links within your own site, locate the page containing the link and test the destination directly.

Choose the repair that matches the page

The intended page still exists: correct the link

Update the link on the page where it appears so its href points to the correct, live URL. Use a normal anchor element, such as <a href="https://example.com/page">Read the guide</a>. Google generally identifies links through anchor elements with an href; a script-only click handler or a non-anchor element may not be parsed reliably. Write concise, descriptive link text so visitors can tell where the link leads.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

The page moved: redirect to its replacement

If the old page has moved and a real, closely related replacement exists, redirect the old URL to that page. For a permanent move, use a server-side 301 or 308 redirect. For a temporary change, use a temporary redirect. The setup depends on your hosting platform and server environment; follow the host’s instructions for configuring redirects.

Do not send every old URL to the homepage. A redirect should take visitors to the closest relevant replacement, not merely to a page that loads successfully.

The page was removed without a replacement: return 404 or 410

When content is gone and there is no comparable replacement, leave the URL returning HTTP 404 or 410. Google currently treats 410 like 404. Do not invent replacement content or return a success response for a page that does not exist; Google may interpret a success response paired with a “not found” message as a soft 404.

You can still make the error useful to visitors. A custom 404 page can explain that the page is unavailable, retain your site’s navigation and visual identity, suggest useful destinations, or offer a way to report the broken link. It should continue to return HTTP 404.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Prioritize the 404s that need attention

Not every 404 is a problem. Google Search Console Help says, “In general, 404 errors won’t impact your site’s search performance, and you can safely ignore them if you’re certain that the URLs should not exist on your site.”

Start with URLs your site linked to or submitted in a sitemap, since those may indicate a mistake you can fix. Also investigate recurring misspellings or alternate spellings; if a repeated typo points to a clear intended page, a redirect may help. A removed page with no suitable replacement should remain a 404 or 410 rather than being redirected somewhere unrelated.

Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Verify the repair

  1. Check the source: Open the page containing the link and confirm its anchor points to the intended URL.
  2. Check the destination: Visit the destination and confirm it loads the expected page. If you configured a redirect, check that the old URL reaches the relevant replacement and behaves as intended.
  3. Use Google’s URL Inspection when relevant: In Search Console, inspect the URL to view the information Google has stored, then run a live test to check its current state. Stored index information and live-test results are different. Google says live-test information is not itself used to generate search results.
  4. Request indexing if appropriate: After correcting a crawl or indexing problem, you can request indexing in URL Inspection. A request does not guarantee a particular search appearance.

A site crawler or link-audit tool can help find URLs across a large site. Treat its findings as a starting point: decide whether each destination is live, moved, or gone before changing links or creating redirects.

Google guidance for fixing 404 errors and links

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.