Sub topic 7
Redirects, 404s, soft 404s and server errors
This chapter assumes you can open the Page indexing report, read the reasons table, and know the HTTP status codes 200, 301, 404 and 500. It covers the reasons that come from the HTTP response a URL returns. For each one you will see what Google saw, whether it is usually a problem, and what to check.
How status codes become report reasons
When Googlebot requests a URL, the server's response decides what happens next. A 200 response lets Google consider the content for indexing. Any other response sends the URL to the Not indexed table with a reason that matches the response. The reason names the symptom. It does not tell you why the server answered that way, so you still have to trace the cause.
Page with redirect
The reason is Page with redirect. The URL answers with a 301 or 302 and points to another address. Google follows the redirect and evaluates the destination instead. The original URL is not indexed, and that is correct.
This is almost always expected. Old URLs, http to https redirects and non-www to www redirects all land here. Investigate only in these cases:
- A URL you submitted in your sitemap redirects. Replace it with the final destination.
- Internal links point to redirecting URLs. Update them to link to the final URL directly.
- A redirect chain has several hops, or a loop. Collapse the chain to a single redirect.
Not found (404)
The server returned a 404 status. Google sees a missing page and does not index it. Google keeps retrying 404 URLs for a while, so they can remain in the report long after you stop linking to them.
Decide by asking whether the page should exist:
- If the page was deleted on purpose, no action is needed. A 404 is the correct answer.
- If the page moved, add a 301 redirect to its replacement.
- If the page should exist, fix the cause. Common causes are a broken deployment, a wrong rewrite rule or a typo in a link.
Check your sitemap too. A URL that is listed there and returns 404 sends Google a contradiction.
Soft 404
A soft 404 is a page that returns a 200 status but looks like a missing page to Google. Typical examples are an empty category, a "no results" search page, or a thin page that says "not found" in the body. Google treats it like a 404 and does not index it.
The status code is the problem, because it says the page is fine when the content says otherwise. Choose the fix that matches the page:
- The page is gone: return a real 404 or 410 status.
- The page moved: return a 301 to the replacement.
- The page should be indexed: add real content so it is no longer empty or near empty.
You can see the response header for any URL with curl:
curl -I https://www.example.com/old-category/The first line of the output is the status. If it reads HTTP/1.1 200 OK for a page that says "nothing found", you have found a soft 404.
Server error (5xx)
The reason is Server error (5xx). Google received a 500-class response, such as 500, 502 or 503, or the request failed in a way that looks like one. Unlike the earlier reasons, this one is nearly always a real problem. Google could not read the page at all.
Check these in order:
- Open the URL yourself. Does it fail consistently or only sometimes?
- Check server logs for errors at the time Googlebot visited.
- Look for overload, a timeout, or a firewall or rate limit that blocks Googlebot.
If the outage was brief, Google retries on its own. If it keeps failing, Google crawls the site less often.
Quick reference
| Reason | Status Google saw | Usually a problem? | Typical fix |
|---|---|---|---|
| Page with redirect | 301 or 302 | No | Update sitemap and internal links |
| Not found (404) | 404 | Only if the page should exist | Restore the page or add a 301 |
| Soft 404 | 200 with empty or error-like content | Yes | Return a real status or add content |
| Server error (5xx) | 500, 502, 503 | Yes | Fix the server, then validate |
Exercise
A product page you deleted last month still appears under Not found (404), and it is not in your sitemap. A second URL, /sale/, appears as Soft 404, and its page shows "No items available" with a 200 status. What should you do about each?
Show answer
Do nothing for the deleted product page. A 404 is the correct response for a page removed on purpose. For /sale/, either return a real 404 (or 410) if the page is permanently gone, redirect it with a 301 if a replacement exists, or add real content if it should be indexed. Then start validation.