How to check and handle 404 errors: verify the status code, then act based on what happened to the content

ProcrustesPR

To check for 404 errors, start with Google Search Console to find problem URLs Google has detected, then use a website crawling tool to verify HTTP status codes and links. The right response depends on what happened to the content: correct the link if the URL is wrong; set up a 301 permanent redirect if the page has moved; return a 404 or 410 if the content has been deleted and there is no replacement page. Not every 404 needs a redirect—the key is to make the response match the page’s actual status.

ProcrustesPRProcrustesPRCan a One-Page Website Do SEO?

First, identify the issue: missing content or another error?

A 404 means the server cannot find content at the requested URL. A 2024 Semrush article lists several common causes: deleted pages, URL changes without proper redirects, and misspelled URLs. When you encounter a 404, first check whether the URL is correct and the content still exists, rather than immediately assuming the entire website or server is down.

Also distinguish between error types: a 404 means the page cannot be found, while 5xx errors such as 500 indicate that the server encountered a problem while processing the request. These errors call for different fixes.

Use tools to find problem URLs and check links pointing to them

A 2025 Welly article describes two ways to check: Search Console reports errors detected during Google’s actual crawls, while tools such as Screaming Frog can simulate a crawl to check status codes and redirects. When reviewing the results, check the following:

  • Problem URLs: Verify the returned status codes to distinguish between 404s, redirects, and server errors.
  • Internal links: Check for mistyped URLs or links that still point to an article’s old location after it has moved. Also verify that URLs in the sitemap are correct.
  • External resources: Check whether references linked from your website are unavailable or outdated. Update or remove links as needed to keep readers from reaching dead ends.

Fix the link, redirect, or keep the 404?

  • The content still exists, but the link is wrong: Update incorrect internal links to point to the correct URL.
  • The content has moved to a new URL: Set up a 301 permanent redirect from the old URL to the new page. For example, Welly illustrates this scenario with a product URL changing from /products/123 to /products/eco-water-bottle.
  • The content no longer exists and there is no replacement page: Return a 404 or 410 so search engines do not mistakenly treat the page as still having usable content. This is also a key step in avoiding soft 404s.

Returning the correct 404 status code does not mean giving up on the user experience. The error page can still clearly explain that the content cannot be found and offer site search, a link to the homepage, or a way to report the problem. The status code communicates the page’s status, while the error page’s content helps readers decide what to do next.

ProcrustesPRProcrustesPRHow to Use a Marketing Funnel: Fill Page Gaps at Each Stage, Then Build a Conversion Path

Checking for and handling 404 errors: perspectives from across the web

What should you address first when a sitemap contains a URL that returns a 404?

First, confirm whether the URL should still be included in the sitemap. If the page no longer exists, update the sitemap and check whether links pointing to that page need to be adjusted. This advice concerns 404 URLs submitted through a sitemap; it does not mean all 404s are caused by sitemaps. Confirm the page’s actual status before taking action.

Could a firewall also be related to a 404?

It could be. A forum participant reported encountering a firewall-related 404 and suggested checking the firewall. This is only one person’s experience, though. It does not establish that firewalls are a common cause of 404s or mean that changing firewall settings should be your first step whenever you encounter one. Troubleshooting should depend on the specific circumstances.

Do you still need to check for redirect chains after setting up redirects?

Yes. Check whether redirects form an excessively long chain or point to invalid URLs. Neil Patel’s article notes that overly long redirect chains may waste search engines’ crawling resources; awoo’s article also recommends checking for redirect loops and invalid destinations. These checks are important after setting up redirects, but not every redirect has a problem.

ProcrustesPRWhat types of URLs are there, and what are they used for?

References

  1. Dealing with 404 Errors During Website Deployment: SEO Challenges and Solutionswww.warriorforum.com — Discusses: Could a firewall also be related to a 404?
  2. Google Search Console Errors: Identifying and Fixing Themwww.semrush.com · 2024-03-20T10:51:00Z — Source used in the article above.
  3. Screaming Frog 教學:11 個常用頁籤 + 4 個進階 SEO 秘技!www.awoo.ai · 2024-10-16T06:38:05+00:00 — Source used in the article above.
  4. How to Create and Optimize Your Robots.txt Fileneilpatel.com · 2026-05-26T19:00:00+00:00 — Discusses: Do you still need to check for redirect chains after setting up redirects?
  5. 404 錯誤會影響 SEO 排名嗎?404 not found 處理 4 方法welly.tw · 2025-02-12T09:55:58.773Z — Source used in the article above.
  6. 檢索預算(Crawl Budget)是什麼?中大型網站不可不知的SEO項目!www.awoo.ai · 2022-05-24T06:21:55+00:00 — Discusses: What should you address first when a sitemap contains a URL that returns a 404?; Do you still need to check for redirect chains after setting up redirects?

Related articles

Can a One-Page Website Do SEO?How to Use a Marketing Funnel: Fill Page Gaps at Each Stage, Then Build a Conversion PathWhat types of URLs are there, and what are they used for?When should you use relative or absolute paths in WordPress?What are www subdomains and relative links used for?How to Create an HTML Sitemap: From Organizing Content to Publishing and UpdatingHow to troubleshoot and fix 404 errors: identify broken URLs first, then address the causeHow to improve on-site content and structure: audit pages first, then address content gaps and internal links
ProcrustesPR
ProcrustesPR