Web & Development

How to Fix 404 Errors and Broken Links Without Hurting Your SEO

How to Fix 404 Errors and Broken Links Without Hurting Your SEO

Broken links and missing pages can frustrate visitors and waste valuable traffic. Learn how to find 404 errors, choose the right redirects, fix WordPress and Joomla links, and avoid common SEO mistakes.

A visitor clicks a product link and sees “Page not found.” Another follows an old Google result to an article that no longer exists. A customer clicks a download button, but the file has moved. Broken links can interrupt purchases, frustrate readers and waste valuable traffic.

The solution is not to redirect every missing URL. Some 404 errors are correct. The goal is to repair broken user journeys, preserve relevant destinations and return the right HTTP status for each situation. This guide shows how to do that with Google Search Console, a website crawler, WordPress and Joomla—without server command-line tools.

1. What is a 404 error?

When a browser requests a URL, the server returns an HTTP status code. A 200 OK response indicates success; 404 Not Found means the requested resource was not found. The same applies to pages, images, PDF files and product URLs.

Suppose an article originally lived at https://example.com/blog/old-seo-guide, then moved to https://example.com/blog/website-seo-guide. If the old URL is still linked but has no redirect, visitors may see a 404.

2. Why broken links matter for visitors and SEO

A broken product CTA can interrupt a purchase. An outdated menu link makes navigation unreliable. An external backlink to a renamed article may lead readers to an error instead of the content they expected.

Internal links also help search engines discover pages and understand site structure. Correcting broken internal links improves navigation for visitors and crawlers.

But 404 errors do not automatically damage a site's rankings. Google explains that legitimate 404 and 410 responses are normal. A page that genuinely no longer exists should not be forced to return a success response or redirect to an unrelated page. Focus on meaningful errors, not simply reducing the number shown in a report.

3. Understand the status codes

Status Meaning Typical use
200 Successful response Existing page
301 Moved permanently Article or product moved for good
302 Temporary redirect Temporary destination change
308 Permanent redirect Permanent move with method preservation
404 Not found Missing page or resource
410 Gone Intentionally removed resource
500 Internal server error Application or server failure

A 500 caused by PHP or a database issue is not a missing-page problem. Fix the underlying application error instead of creating a redirect.

4. Find broken URLs with Google Search Console

  1. Open Google Search Console and select the correct property.
  2. Go to Indexing → Pages.
  3. Inspect Not found (404) and Soft 404 categories.
  4. Open example URLs and use URL Inspection when you need more detail.
  5. For each URL, determine whether it ever existed, moved, has a relevant replacement or is still linked internally.
  6. Prioritize URLs tied to important pages, sales journeys or useful backlinks.

Search Console is not a comprehensive broken-link scanner. It may show historical or externally discovered URLs without identifying the page that links to them. A reported 404 does not necessarily mean your website has a current internal-link problem.

5. Find broken internal links with a crawler

A desktop crawler such as Screaming Frog SEO Spider can help identify internal links that return errors.

  1. Open the crawler and enter your website homepage.
  2. Start the crawl.
  3. Filter response codes for client errors, especially 404.
  4. Select a broken URL and inspect its inlinks or incoming-links report.
  5. Open the pages that contain the outdated link and correct it in your CMS.

For example, if six articles still link to /old-product-comparison but the current page is /best-product-comparison, update those six links directly. A redirect is useful for external visitors, but internal links should ideally point to the final URL.

For smaller sites, manually review navigation menus, prominent buttons, product comparisons and downloads.

6. Decide: redirect, restore or keep the 404?

Situation Recommended action
Page moved permanently and has an equivalent replacement Add a 301 redirect and update internal links
Page moved temporarily Use a 302 redirect
URL contains a typo in an internal link Correct the source link; consider a redirect if the typo receives useful external traffic
Page was removed without a relevant replacement Return 404 or 410, and remove outdated internal links
Page should exist but is broken Restore the page or repair routing and publication settings
Server returns an application error Diagnose the server or CMS error, not the redirect rules

Avoid sending every missing URL to your homepage. Google may treat unrelated redirects as soft 404 responses. A redirect should help visitors reach genuinely relevant content.

Illustration of the article's main concept

7. Fix 404 errors in WordPress

A redirect-management plugin such as Redirection offers a graphical interface.

Suppose https://example.com/wordpress-speed-tips moved to https://example.com/speed-up-wordpress.

  1. Confirm you have a recent backup.
  2. In WordPress, open Plugins → Add New Plugin.
  3. Install and activate a maintained redirect plugin from the official directory.
  4. Open Tools → Redirection and complete its setup.
  5. Add the source /wordpress-speed-tips.
  6. Add the target /speed-up-wordpress.
  7. Choose a permanent 301 redirect and save.
  8. Test the old address in a private browser window.
  9. Update menus and articles that still link to the old URL.

If every WordPress post suddenly returns 404: check Settings → Permalinks first. Saving the existing permalink settings may refresh rewrite rules where supported. If the problem persists, investigate server rewrites, hosting configuration and plugin conflicts. Hundreds of individual redirects will not repair a global routing problem.

8. Fix broken URLs in Joomla

Joomla includes a Redirect component. The menu location varies by Joomla version and administrator configuration.

Suppose https://example.com/old-joomla-guide became https://example.com/joomla-security-guide.

  1. Open the Joomla administrator interface.
  2. Locate System → Redirects, or the equivalent Redirect component entry.
  3. Enable the Redirect plugin if you want missing-URL requests to be collected automatically.
  4. Create a redirect with the old URL and the new destination.
  5. Enable and save the entry.
  6. Test the old URL and verify that it reaches the intended article.

Joomla URLs can depend on menu item aliases, article aliases and routing settings. If many URLs break after changing a menu structure, investigate routing before creating individual redirects.

9. Avoid redirect chains and loops

A chain such as /old-page → /intermediate-page → /new-page introduces extra requests. Prefer /old-page → /new-page.

A loop such as /page-a → /page-b → /page-a may cause the browser to report “too many redirects.”

Before adding a rule, check whether a CMS plugin, CDN or hosting dashboard already handles the same address. Afterward, use an online HTTP status checker to verify the response and final destination.

10. Understand soft 404 errors

A soft 404 occurs when a page effectively says its content is missing but returns a successful HTTP response, commonly 200 OK. It can also happen when an expected page is empty or fails to render properly.

For example, a deleted product page may display “Product not found” while returning 200. Google may classify it as a soft 404.

If the resource no longer exists, return a real 404 or 410. If it moved, redirect to a relevant replacement. If it should still exist, investigate why content is missing, including rendering and application errors.

11. Build a helpful custom 404 page

A useful 404 page should explain that the address is unavailable and help visitors continue. Consider:

  • A short, human explanation instead of a technical stack trace.
  • A working homepage link and clear navigation.
  • A site-search field, if available.
  • Links to popular categories or relevant resources.
  • A way to report a broken link.

Even a beautifully designed 404 page must return the actual HTTP 404 status, not 200 OK.

12. Update your sitemap and internal links

After repairing a moved or removed page:

Technical workflow illustration
  1. Correct links in menus, articles, product tables and buttons.
  2. Remove deleted URLs from your XML sitemap.
  3. Include the replacement URL if it should be indexed.
  4. Check its canonical URL.
  5. Confirm it is not accidentally marked noindex.
  6. Verify that internal links point directly to the final destination.

CMS SEO extensions may update some sitemap entries automatically, but check the generated output.

13. Prioritize the errors that matter

Priority Example Action
High Broken checkout, product CTA or download Fix immediately
High Popular article moved without redirect Add a relevant 301
High Broken main navigation Correct the link
Medium Old page with useful backlinks Restore or redirect appropriately
Medium Missing image in an important guide Replace or fix the URL
Low Random URL that never existed Keep legitimate 404
Low Obsolete page without replacement or traffic Keep 404 or 410

This avoids maintaining unnecessary redirect rules while protecting important user journeys.

14. Test every repair

For a renamed page:

  1. Open the old URL and confirm the redirect.
  2. Verify the destination displays the expected content.
  3. Check the HTTP status with a browser-based checker.
  4. Open the original referring page and verify its link now points directly to the destination.
  5. Test important navigation on mobile.
  6. Inspect the new URL in Search Console when appropriate.

For a deleted page, confirm the server returns a genuine 404 or 410. Google may take time to recrawl URLs and update reports, so historical errors can remain visible temporarily.

15. Prevent broken links from returning

Whenever you rename or remove a page, check menus, related articles, sitemaps and marketing campaigns. Review important 404 reports monthly and crawl key sections periodically. After a redesign or migration, test high-traffic pages, product links and downloads.

Before publishing new content, verify its internal and external links—especially commercial CTAs. A small maintenance routine is easier than repairing hundreds of broken URLs later.

Conclusion

Fixing 404 errors is not about eliminating every missing URL from Google Search Console. It is about ensuring visitors reach the content they expect.

Restore pages that should exist. Redirect pages that genuinely moved. Update internal links to their final destinations. Let intentionally removed pages return an appropriate 404 or 410 when no relevant replacement exists.

With Search Console, a website crawler and your CMS administration interface, most repairs can be completed without touching server configuration files or running commands.

Frequently asked questions

Do 404 errors hurt SEO? Legitimate 404 responses do not automatically harm a website's overall rankings, but broken navigation should be fixed.

Should I redirect every 404 to my homepage? No. Redirect only to a relevant destination.

What is the difference between 301 and 302? A 301 signals a permanent move; a 302 signals a temporary one.

Should I use 404 or 410 for deleted pages? Both are valid. A 410 explicitly says the resource is gone.

Can I fix redirects without editing .htaccess? Yes. WordPress plugins, Joomla's Redirect component and some hosting dashboards offer graphical tools.

How can I find which page contains a broken link? Use a crawler's incoming-links report or inspect internal links manually.

Official sources