301 Redirect or 404: Which Should You Use?

This guide supports our SEO services.

301 or 404: a fork in the road, one path redirecting, the other ending at a red barrier

Use a 301 redirect when a page has moved for good and a relevant replacement exists. Return a 404 (or 410) when the content is gone and nothing on your site answers the same need. The right choice depends on what happened to the page, not on which status code sounds safer for SEO, and getting it right protects both your visitors and the search signals the old URL earned.

This guide is part of our HTTP status codes reference. For the full detail on each code, see the guides to the 404 error and the 302 status code, which covers temporary redirects.

A moved page reaches a relevant replacement; a missing page offers navigation onward.
A moved page and a missing page create different visitor journeys. When useful content has moved, visitors need its relevant replacement. When it is genuinely unavailable, clear navigation is more useful than an unrelated destination.

What a 301 and a 404 tell search engines

A 301 Moved Permanently response sends the visitor to a new URL and tells every client that the move is permanent. Google’s status code documentation says it treats a 301 as a strong signal that the redirect target should be the URL it processes and shows, and that any content on the old URL is ignored. A 308 Permanent Redirect is treated the same way.

A 404 Not Found response says there is no page at that address. Under RFC 9110 it makes no promise about whether the absence is temporary or permanent; 410 Gone is the explicit “removed for good” code. Google removes indexed URLs that return 404 or 410 from its index over time, does not process new ones, and crawls them less often. Its documentation also notes that 4xx codes (other than 429) do not slow down crawling of the rest of your site.

Neither code is a penalty. A 404 on a page that should not exist is normal. A 301 that sends visitors somewhere unrelated is the bigger risk, because it creates a page that does not answer the original request.

Why the choice matters

  • Visitors: someone who clicks an old link expects the content it promised. A redirect to the true replacement keeps them; a redirect to an unrelated page or the home page loses them anyway.
  • Links from other sites: when a page with backlinks moves, a 301 to its replacement keeps those links pointing at live content. A 404 means those links lead nowhere.
  • Index quality: a clean mix of 200 pages, one-hop 301s and honest 404s tells search engines exactly which URLs are real.
  • AI search: pages must be indexed to appear as links in Google’s AI Overviews and AI Mode. A moved guide that gets a 301 can keep that visibility at its new URL; a deleted one drops out.

A matching destination answers the original request, while an unrelated page does not.
The destination must answer the original request. Sending every visitor to a homepage does not establish that their original need has been answered. Compare the purpose of the requested content with the proposed destination.

When to use a 301 redirect

Use a permanent redirect whenever the same content, or a clear successor, now lives at a different URL:

  • A page’s slug changed, or it moved to a different folder.
  • Two pages on the same topic were merged into one.
  • The site moved from HTTP to HTTPS, between www and non-www, or to a new domain.
  • A redesign changed the URL structure.
  • A product was replaced by a newer model that serves the same buyer.

Google’s redirects guide recommends server-side permanent redirects wherever possible. Meta refresh and JavaScript redirects work as fallbacks but are slower and less reliable for crawlers.

Best practices for 301s

  • One hop: point the old URL straight at the final URL. When a page moves again, update the earlier redirect too, so there is never a chain.
  • Closest match: send each old URL to the page that answers the same need, not to the home page or a category by default.
  • Update internal links: change menus, buttons, old posts and the sitemap to the new URL, so the redirect only serves outside links and bookmarks.
  • Keep them: Google’s site move guide suggests keeping redirects for at least a year; on a business site there is rarely a reason to remove them.
  • Temporary is different: if the original URL will come back, use a 302 or 307 instead (see 302 status code).

When a 404 or 410 is the right answer

Let the URL return 404 or 410 when the content is gone and there is no page that serves the same purpose:

  • An event, job posting or offer that ended and has no successor.
  • A service you no longer provide, with no related service to point to.
  • Thin or outdated pages you removed on purpose.
  • URLs that never existed: typos, broken links from other sites and bot probes.

Choose 410 when you want to state plainly that the removal is permanent; choose 404 when you are not sure. Google handles both the same way. What you should avoid is the soft 404: a “not found” message served with a 200 status, or every removed URL redirected to the home page. Google’s crawl troubleshooting guide lists both as patterns it reports as soft 404s.

Best practices for 404 pages

  • Return a real 404 or 410 status code, and confirm it with curl -I or URL Inspection.
  • Keep the normal header, navigation and footer, with a clear message, a search box and links to your main pages.
  • Track visits to the 404 page with the requested URL, so you can spot old links worth redirecting.
  • Fix internal links that point at removed pages instead of relying on the error page.

Three distinct page situations: accidentally missing, moved and obsolete.
A lost page is not always an intentional removal. The article separates an accidental loss from a permanent move and deliberate removal. A website owner should establish which situation applies before approving the work.

Quick decision guide

SituationBest responseWhy
Page moved permanently301 to the new URLVisitors and signals follow the content.
Two pages merged301 from the retired page to the survivorOne page now answers the topic.
Site redesign with new URLs301 from each old URL to its matchKeeps rankings and links connected.
Page removed by mistakeRestore it at the same URLNothing is lost if fixed quickly.
Content temporarily unavailable302 or 307 to a holding pageThe original URL stays the main one.
Content retired, no replacement404 or 410An honest answer; the URL leaves the index.
Typo or broken external linkLeave the 404; redirect only if the intended page is obviousNo need to invent a destination.
Popular page with no real successorRestore it, or redirect only to a page that answers the same needTraffic alone does not justify an unrelated redirect.
Whole site down for a day of maintenance503 with Retry-AfterTells crawlers to come back; see 503 Service Unavailable.
Want this handled for your business?

Our SEO team plans, fixes and reports on the work in this guide every month for Canadian businesses.

How to check what your URLs return

  • curl: curl -sIL https://example.com/old-page/ shows every hop and the final status.
  • Browser developer tools: on the Network tab, with “Preserve log” ticked, the first request shows 301 or 404.
  • Search Console: the Page indexing report lists “Not found (404)”, “Soft 404”, “Page with redirect” and “Redirect error”; URL Inspection tests one URL live.
  • A site crawler: finds internal links that lead to redirects or 404s, and redirect chains.

A simple routine for every URL change

Start with a short URL map: what was requested, whether the content should still exist, and where its relevant replacement lives if it moved. Redirect moved content with one-hop 301s, return honest 404s or 410s for content that is gone, update internal links and the sitemap, and check the important URLs after every release. If you want a specialist to review redirects and errors across your site, technical reviews are part of our Toronto SEO services.

Frequently asked questions

Do 301 redirects hurt SEO when a page moves?

No. A 301 is the right signal for a permanent move, and Google treats it as a strong hint that the destination should be shown in results. Problems come from redirecting to a page that does not answer the original request, or from chains and loops.

Is a 404 bad for SEO?

A 404 on a page that should not exist is normal and does not harm the rest of the site. It costs you when a page with rankings, enquiries or backlinks returns 404 instead of redirecting to its replacement.

Should I redirect a deleted page or let it 404?

Redirect it with a 301 if another page serves the same need. If nothing on the site replaces it, let it return 404 or 410. Restore it if it was removed by mistake.

Is it better to redirect 404 pages to the home page?

No. Visitors who wanted a specific page land somewhere unrelated, and Google often reports these redirects as soft 404s. Redirect only to a relevant page and let genuine removals return 404.

What is the difference between a 301 and a 302 redirect?

A 301 is permanent and moves signals to the new URL. A 302 is temporary, so Google usually keeps the original URL in results. Use a 302 only when the original page will come back; see our 302 status code guide.

Should I use 404 or 410 for removed content?

Either works. Google treats both the same and removes the URL from its index. A 410 states that the removal is permanent, while a 404 makes no promise either way.

How many 301 redirects are too many?

There is no limit on how many URLs you redirect, but each URL should take a single hop to its final address. Google follows up to 10 hops in a chain, yet every extra hop slows visitors and wastes crawling.

How long should I keep 301 redirects in place?

Google's site move guidance suggests at least a year. On a business site there is rarely a reason to remove a redirect, since old links and bookmarks keep using it.

Do redirected pages keep their rankings?

When a page moves to a URL with the same content and a one-hop 301, Google usually transfers its place to the new URL after recrawling. Expect a short fluctuation while Google processes the change.

How do I find 404 errors and redirects on my site?

Use the Page indexing report in Search Console for Not found (404), Soft 404 and Redirect error, crawl the site to find internal links to redirects or 404s, and check single URLs with curl -I or URL Inspection. Our HTTP status codes hub lists every code.