Journal

How to Fix 404 Errors: Diagnose the URL, Then Choose the Right Fix

Triage 404s by checking whether each URL should exist, then correct the link, restore the page, redirect a moved page, or leave it gone.

By Pankaj8 min read

A four-URL audit can reveal four different causes: a mistyped internal link, a deleted page that should be live, a moved article, and a URL that never belonged to the site. Knowing how to fix 404 errors means matching each URL to its cause—not applying one redirect rule to everything.

To fix a 404 error, test the exact URL and decide whether its page should exist. Correct a broken link, restore a missing page, or redirect a moved page to a genuinely relevant replacement. If the content is intentionally gone and has no equivalent, leave the URL returning 404. Retest the original address after making a change.

What a 404 means and how to decide what to do

An HTTP 404 status code means the server could not find a resource at the requested URL. It describes the response to that address; it does not, by itself, mean the visitor’s browser or internet connection is broken. A typo in a URL can return 404 while other pages on the website work normally.

Start with the page’s intended status, not the number of 404s in a report. Google’s guidance on 404 pages explains that a URL returning 404 is not automatically a problem for a site. A missing page that customers need is different from an invalid address or content deliberately removed without a replacement.

Compare the reported URL with the expected address, character by character. Check for misspellings, an outdated slug, a changed category path, or a trailing section that no longer exists. Then classify the case: should this page be live, does a replacement exist, or is the address simply no longer needed?

How to find and prioritize 404 errors on your website

In Google Search Console, open Indexing → Pages and look for the Not found (404) issue. Review example URLs and investigate how Google may have discovered each one. Search Console reports what Google encountered; the report is a starting list for triage, not a command to create redirects for every entry.

For a URL that should work, open URL Inspection in Search Console and test the live URL after a change. Google’s URL Inspection documentation describes how to inspect a URL and request indexing. A request asks Google to recrawl; it does not guarantee a particular indexing result.

A site crawl can find broken links within pages you control. Tools such as Screaming Frog SEO Spider and Sitebulb can help identify URLs returning errors and the pages that link to them. Server access logs offer another view: they record requests reaching the site, although the available details depend on the server and hosting setup.

Prioritize an error when the URL has a clear connection to users or site structure:

  1. It appears in navigation, a product category, or another important internal link.
  2. It represents a page the team expects to be published, such as a current product or guide.
  3. It receives visits or has external links that may still send people to the old address.
  4. It appears in a sitemap, which should list current, intended URLs rather than retired ones.

For example, a crawl might show /guides/seo-audit linked from a live article, /old-pricing in an old campaign, and /typoed-categroy/shoes in one internal link. The first needs a page-or-move decision, the second needs a check for a genuine replacement, and the third points to a link to correct. Their shared 404 status does not make their fixes interchangeable.

Once the URL is classified, make the smallest change that resolves its actual cause. Fix links you control directly rather than routing visitors through a redirect when the intended destination is already known.

  • A typo or stale internal link: Edit the link on the page that contains it. If an external site links incorrectly, consider a redirect only if the destination would genuinely satisfy someone following that link.
  • A page removed by mistake: Restore or republish it at its intended URL. Confirm that it is publicly available, not still in draft or private status.
  • A published WordPress page returning 404: Confirm its permalink and slug. If the problem followed a permalink change, go to Settings → Permalinks and save the existing settings to refresh WordPress rewrite rules. Retest the URL; if it still fails, investigate plugin, theme, or server routing conflicts. WordPress.com’s troubleshooting guidance also points site owners toward checking missing content and site configuration.
  • A page that moved: Redirect the old address to the closest useful equivalent, then update internal links and the sitemap to use the new address.

A worked triage of the three example URLs makes the distinction concrete: fix the link containing categroy; restore /guides/seo-audit if the guide is meant to be live; and assess whether /old-pricing has a current pricing page that matches the old page’s purpose. If it does not, do not invent a destination just to make the error count shrink.

When to use a 301 redirect—and when to leave a URL gone

Use a 301 when a page has permanently moved and a relevant replacement exists. For instance, if /guides/site-audits/ has moved to /resources/site-audit-guide/, direct the old URL to that guide. Google’s documentation on HTTP status codes explains how Google processes server responses, including redirects and 4xx errors.

The exact rule syntax depends on the server. On Apache, a site administrator might use a rule such as Redirect 301 /guides/site-audits/ https://example.com/resources/site-audit-guide/ in the appropriate configuration. Nginx uses a different configuration style, while WordPress site owners may manage redirects through their host or a redirect plugin. Use one method suitable for the site’s setup, and avoid adding overlapping rules in multiple places.

After adding a redirect, test the old URL and confirm it reaches the intended live destination. Update links you control to point directly to the final URL, and check that the destination itself does not return an error. A chain through several redirects adds complexity without improving the match for the visitor.

If content was deliberately removed and no equivalent exists, leave the URL returning 404. Google treats 404 and 410 responses similarly for many indexing purposes, according to its HTTP status code guidance. A soft 404 is different: it describes a page that returns a success response but appears to Google to have no useful content, or a redirect to a destination that does not fit the original request. A custom 404 page can offer site search and useful navigation, but it does not turn the missing URL into a working page. Likewise, robots.txt controls crawling; blocking a URL there does not restore the missing resource or correct a broken link.

URL situationAppropriate responseExample
Page should still existRestore the page at its intended URLA guide was unpublished by mistake
Link points to a wrong addressCorrect the linkFix a misspelled category path
Page moved to a close equivalentAdd a 301 to the replacementOld guide URL to its updated guide
Page is intentionally gone, no equivalentLeave it returning 404 or 410Retired content with no useful successor

Verify the fix and prevent repeat errors

Retest the original URL, not only the new page. Confirm the outcome matches the decision: the restored page loads, the corrected link points to a live page, the moved URL redirects to a relevant destination, or intentionally removed content remains unavailable. Check internal links and the sitemap so they no longer promote a retired address.

For a Search Console issue, inspect the URL again after the change and monitor the report for later evidence. For a crawl, rerun the relevant check or review the pages that linked to the error. Access logs can help distinguish occasional bot requests from repeated requests to an important path, but interpret them alongside internal links and customer impact.

Content teams can reduce preventable 404s by checking the final public URL when approving and publishing an article, especially after changing its slug. Seovyn researches topics from real sources and publishes approved articles to a customer’s own site, keeping editorial approval as the default. Its role is to support a source-grounded publishing workflow, not to replace URL diagnosis or redirect decisions. Teams can explore SEO topics and workflows or learn what SEO means before building a publishing process around their site.

FAQ

What is a soft 404?

A soft 404 is a page that returns a successful status, often 200, but appears to Google to be missing or have little useful content. A redirect to an unrelated page can also create this mismatch. Check both the page’s actual response and whether its content fulfills the address’s purpose; use a real 404 response for a page that is gone.

How long does Google keep a 404 URL?

There is no single fixed period that applies to every URL. Google needs to recrawl an address to observe its current response, and timing can vary with discovery and crawling. If a page should be live, fix it and use Search Console’s URL Inspection to request recrawling; if it is gone, the old URL may remain visible in reports while Google processes the change.

What is the difference between a 404 and a 410?

Both indicate that requested content is unavailable. A 404 says the server cannot find the resource, while a 410 indicates it is gone. Google’s status-code guidance treats them similarly for many indexing purposes, so choose the response that accurately reflects the site’s state rather than expecting 410 alone to resolve an unrelated issue.

For teams building a steady, source-grounded publishing workflow with editorial control, Start free.

Keep reading

More from the blog →