Skip to content
El Joseo
SEO for Google

How to Fix a 404 Error: Causes, Soft 404s and Redirects

Learn how to fix a 404 error: causes, the difference between a 404, a soft 404, a 410 and a 500, how they affect SEO, redirects for each CMS and how to build a custom error page.

Share
Small cardboard robot figure standing alone on a wooden surface, with blurred lights in the background
Article summary

To fix a 404 error, first find the cause: if the URL changed, set up a 301 redirect to the closest related page; if the content was deleted by mistake, restore it so it returns a 200 status. The article explains the usual causes, the difference between a 404, a soft 404, a 410 and a 500, and when a 404 actually hurts your rankings.

It then walks through the fix in three steps (find the URLs, judge their importance, identify your CMS), shows how to set up redirects on WordPress, Shopify and Drupal, how to check the redirect worked, and how to design a custom 404 page that keeps visitors on your site.

To fix a 404 error, you first need to find the root cause. If the URL changed, apply a 301 redirect to the closest related page; if the content was removed by mistake, restore it so the page returns a 200 status code again. In my experience as an SEO consultant, fixing these errors isn’t just about tidying up your site: it’s about protecting the authority you’ve built in search engines like Google. A URL with no history of traffic that doesn’t show up as a priority in Google Search Console may not be a red flag, but your important pages need a plan right away.

error 404

What is a 404 error?

A 404 error (also called “Not Found”, see the technical definition on MDN) happens when a browser or a crawler asks for a URL and the server answers that it can’t find it. Handling these errors is part of the daily work of any SEO specialist, and in this guide I’ll show you exactly how to fix a 404 error, what causes it, how it affects your performance, and how to design a custom error page that prevents visitors from leaving.

What causes a 404 error?

The causes usually range from a simple human error to strategic changes on the site. One of the most common is a typo: if someone types eljoseoweb.com/askyc instead of a real URL, the server won’t find anything. On professional projects I usually see three technical causes:

  • Accidental deletion: a developer deletes the content of a URL by mistake and the page disappears instantly.
  • Intentional deletion without a redirect: if you delete a page and don’t set up a 301 or 302 redirect, that URL becomes a dead end.
  • URL optimization: we often change URLs to include the main keyword and make them cleaner. If you don’t redirect the old URL, you leave a broken trail for users and search engines. This is also the number one risk in an SEO migration.

404 vs. soft 404 vs. 410 vs. 500

Not every “page missing” message is the same. Use this breakdown to identify what you’re dealing with. Google explains how each status code affects its crawlers in its documentation on HTTP status codes.

Status codeMeaningSEO impactRecommended action
404Not FoundYou lose the rankings of that URLRedirect (301) to a related page or restore the content
Soft 404The page looks like a 404 but the server returns 200Wastes crawling and confuses GoogleMake the server return a real 404 code (or redirect to a relevant page)
410Gone (permanent)Google treats it much like a 404Use it for content you intentionally removed and will never bring back
500Internal Server ErrorSerious: persistent errors make Google slow down or stop crawlingContact your hosting or development team immediately

A soft 404 is the trickiest one: the page tells the user “this page doesn’t exist”, but the server answers “everything’s fine” (200). Google detects it and treats it as an error. Redirecting every missing URL to your homepage can also end up being treated as a soft 404, because the destination isn’t related to what the user was looking for.

What’s the difference between a 404 error and a 500 error?

A 404 has to do with how you manage the URLs on your site: the server works, but it can’t find that specific file. It’s an oversight you can fix yourself. A 500 error, on the other hand, is a failure on the server side. If a search engine can’t check your site because the server keeps failing, it will assume the site is unreliable and may lower your rankings.

Do 404 errors affect SEO and rankings?

It depends on the type of page you lose. If the URL is strategic (it has traffic, backlinks or ranks for many keywords) and it stays a 404, Google will eventually drop it from its index and the rankings go with it. That’s a big deal in e-commerce: if a category page depends on a single product and that product goes out of stock, the URL may become a 404 and Google will discard its relevance.

  • Temporarily out of stock: keep the URL live with a 200 status code and show related products.
  • Permanently removed: use a 301 redirect pointing to the closest parent category.

On the other hand, 404s on URLs with no traffic or links are harmless: Google itself says they’re normal on any site. For my clients I set up a dashboard that checks the status code of the top-performing URLs every day. You can also use free tools like the W3C Link Checker to find broken links.

How to fix a 404 error, step by step

1) Identify the pages throwing this error

You probably already have a handle on this step, but here’s a tip you might not know: it’s really easy to find your 404 errors for free, either with websites that crawl your site for 404s, like Sitechecker, or with Google’s own tool, Google Search Console. With these tools you’ll be able to identify the URLs that can’t be found, or more precisely, whose content can’t be found. If you notice that pages you care about aren’t showing up at all, also check why your site isn’t on Google.

2) Figure out how important those URLs are

It’s very important that you analyze the URLs with this error, because while best practice says you shouldn’t have 404s at all, the reality is it’s not the end of the world to have a few. What IS a problem is having these errors on pages that are, or were, genuinely important to your website. Try to identify the ones that actually matter, put them in a list on a spreadsheet, and move on to the next step.

3) Identify your CMS

If you’re here, it’s because you’ve got a 404 error, but how you fix it depends on your CMS. Whether it’s WordPress, Shopify or GoDaddy, most of them let you fix these errors fairly easily through redirects.

Redirects: the key to fixing a 404 error

Redirects are the primary method for fixing 404 errors. Specifically, a 301 redirect tells the browser and the search engine that the page has moved permanently to a new location, so any internal linking and backlinks keep passing authority to the new URL. If you’re unsure whether you need a redirect or a canonical tag, I explain the difference in the guide to canonical tags.

Google is like a bad ex: it always remembers and never forgets. So every URL you’ve ever published will very likely stick around in Google’s index for a good while, which is exactly why it’s so important to fix these errors with redirects. Redirects make sure that when a user or Googlebot lands on that URL, they get sent to a related URL that still matters.

And yes, there’s one more thing to keep in mind: these redirects need to be done right. Picture this: if your page once talked about the best hot dogs in Bogotá, but you moved or deleted that content, the redirect should point to related content, in this case, the best hot dogs in Colombia, not to your homepage.

Perfect! Now that we know 404s get fixed with redirects, let me show you how to do it on the most popular CMS platforms. And if this info happens to be outdated by the time you read it, you can always search Google for “how to set up a redirect in X CMS.”

WordPress

Page redirect:

  1. Install a plugin: Go to “Plugins” > “Add New” and search for a redirect plugin like “Redirection,” Yoast SEO or Rank Math (all solid plugins for SEO).
  2. Set up the plugin: Activate it and head to its settings section.
  3. Add the redirect: In the redirects section, enter the old URL and the new URL you want it to point to.

Shopify

URL redirect:

  1. Log in to Shopify: Go to your Shopify admin panel.
  2. Go to “Online Store”: Select “Online Store” from the sidebar menu.
  3. Choose “Navigation”: Go to “Navigation” and then select “URL Redirects.”
  4. Add the redirect: Click “Add URL Redirect,” enter the old URL and the new URL, and save your changes.

Drupal

Redirecting with a module:

  1. Install the “Redirect” module: Go to “Extend,” then search for and install the “Redirect” module.
  2. Set up the module: Once installed, go to “Configuration” > “Redirects.”
  3. Add the redirect: Enter the old URL and the new URL in the fields provided and save your changes.

Keep in mind that all these CMS platforms tend to follow the same structure: the URL you want to redirect from (left side) and the URL you want it to redirect to (right side).

Redirect form with the old URL on the left and the new URL on the right

Most CMS platforms will also ask you to pick a redirect type, usually a number like 301, 302 or 307. I’d recommend sticking with 301 whenever you can, though these days Google doesn’t weigh the redirect type that heavily.

How do you know the error is fixed?

To confirm the redirect worked, when you go to your old URL it should load and display the new URL, a process that’s barely noticeable to the user but that happens behind the scenes. To verify that a redirect is in place, you can install a Google Chrome extension called Redirect Path. Once you have it installed, just click it and it’ll show you the step-by-step of any redirect happening on that URL.

And that’s it: you’ve now fixed an existing 404 error on your website. IMPORTANT: any time you make a content change that alters a URL, that will cause a 404 error, so keep that in mind and set up the matching redirect. Also make sure your sitemap is up to date, so search engines stop requesting old URLs.

Do you need to have zero 404s on your website?

No, you don’t. How serious a 404 error is really depends on the situation: you never want one on a URL that brings you a lot of traffic or that you’re running ads to. I’ve got a few 404 errors on this site myself, for example, but they’re on URLs that just aren’t relevant to me.

Why create a custom 404 page?

When a user hits a 404, they usually hit a dead end and leave the site. To prevent that, customize your error page. Instead of a cold message, a custom page for a clothing store might suggest the three most popular categories or a search bar based on user intent, which also helps you measure how many people keep browsing instead of closing the browser window. Just make sure the page still returns a real 404 status: otherwise you’d be creating a soft 404.

How to create a 404 page

The method depends on your CMS or on how your site is built. In WordPress, you can use theme and page builders like Elementor or Astra to design a visual template without code. For custom-coded sites like my own project, eljoseoweb.com, I often use AI-assisted coding to generate the template logic. Regardless of the method, check that your error page returns a 404 code and not a 200.

Frequently asked questions

Does a 404 error mean I was blocked?

No. A 404 error simply means the server can’t find the page you’re looking for. It has nothing to do with being banned; it’s usually just a broken link or a deleted page.

What does error 404 mean and why does it happen?

A 404 means “Not Found” and happens when a requested file or URL doesn’t exist on the server. It’s typically caused by typos, deleted pages or changed URL structures.

How does the "404 Not Found" message occur?

It occurs when a user or a crawler requests a URL and the server responds that the resource is missing. This often happens after a site migration without redirects or because of a broken inbound link.

Do HTTP 404 errors affect ranking?

Yes, if strategic URLs with traffic history become 404s and stay unfixed, Google will eventually remove them from its index and you lose those rankings. Harmless 404s on URLs with no traffic or links don’t hurt your SEO.

Why should you create a custom 404 page?

A custom 404 page prevents user frustration by offering a search bar, helpful links or popular categories. It turns a dead end into a retention opportunity.

Can 404 errors hurt my website's SEO ranking?

Yes, a lot of unaddressed 404 errors on important pages waste crawling and lose valuable link authority. Fixing them with 301 redirects protects your organic performance.

Could a 404 error be a security risk?

Generally no, but a sudden spike in 404s can sometimes mean malicious bots are scanning your site looking for vulnerabilities. Monitoring your server logs helps you catch it.

What's the difference between a 404 error and a 500 error?

A 404 is a URL management error: the server works but can’t find the file. A 500 is a server-side failure that can affect the availability of the whole site.

Conclusion

Fixing 404 errors is about protecting your traffic and giving visitors a smooth experience. If you leave broken links unattended, you’re leaving money on the table. A good way to start is to run the free SEO audit and see how your site is doing today. And if you’re worried about how these errors affect your rankings, you can book a free 30-minute consultation and we’ll go through them together, or learn more about what an SEO consultant does.

Keep learning

Want more SEO like this?

Leave your email and I'll let you know when I publish something new about SEO for Google.