Products SEO & GEO Agent Paid Ads Agent Website Agent Conversion Agent
How it works Pricing FAQ Blog Book a call

Custom 404 page: keep visitors and links when pages break

Updated · 7 min read

Short answer A 404 by itself doesn't hurt your Google rankings; Google says so. The cost is elsewhere: visitors who leave, links from other sites that point at nothing, and ads Google disapproves. Redirect pages that moved, let truly gone pages return 404, and give that page a search box, your main services and a phone number.

Want help applying this to your business? Talk it through on a free 30-minute call.

Book a call

Do 404 errors hurt SEO?

Not on their own. A 404 is the reply your server sends when someone asks for a page that isn't there (MDN Web Docs: 404 Not Found). Every site has some, and Google expects them:

"If some URLs on your site 404, this fact alone does not hurt you or count against you in Google's search results." (Google Search Central Blog: Do 404 errors hurt my site?)

Google's Search Console help agrees:

"404 responses are not necessarily a problem, if the page has been removed without any replacement. If your page has moved, use a 301 redirect to the new location." (Search Console Help: Page indexing report)

So the question isn't "how many 404s do I have?" It's "which ones cost me something?"

What broken pages actually cost you

The ranking penalty is a myth. These costs are real:

CostWhat happensWhere you see it
Lost visitorsSomeone clicks an old link, sees a dead end, and calls the next businessVisits to your "not found" page in your analytics
Lost link valueAnother site links to a page you deleted. Google drops pages that return a 404 from its index, so that link now points at nothing (Google: How HTTP status codes affect Google's crawlers)Search Console, Page indexing report, "Not found (404)"
Lost Google ranking for that pageAn indexed page that starts returning 404 is removed from Google's results (same source)Traffic to that page goes to zero
Disapproved adsGoogle Ads disapproves ads whose landing page is brokenGoogle Ads, policy status on the ad

On ads, Google's destination policy lists, as grounds for disapproval:

"Destinations that return an HTTP error code for Google AdsBot web crawlers on common devices globally." (Google Ads Help: Destination requirements)

What about "crawl budget", the number of pages Google is willing to crawl on your site? Google says its crawl budget guide is for sites with 1 million+ pages, or 10,000+ pages that change daily (Google Search Central: Crawl budget management for large sites). A 30-page service business site doesn't need to worry about it. A missing page even helps here: Google calls a 404 "a strong signal not to crawl that URL again" (same page).

Which 404s to fix, and which to leave

Fix the ones that people or links still reach. Leave the rest.

What the dead address isWhat to do
A page you moved or renamed301 redirect it to the new address
A service you dropped, with a close match301 redirect to the closest service page
A page gone for good, nothing similarLet it return 404 (or 410, which Google treats the same)
A typo in someone's link to you (`/drian-cleaning`)301 redirect to the right page
Odd addresses that never existed on your siteIgnore them

A 301 redirect is a permanent forwarding order from an old address to a new one, and Google says permanent redirects "don't cause a loss in PageRank", the value a page earns from links (Google Search Central: Site moves with URL changes). That's how you keep the links a dead page had earned.

Google lists every 404 it hits, including addresses from broken links elsewhere. If they never existed on your site, "you can safely ignore them" (Google Search Central Blog: Do 404 errors hurt my site?). Google's crawler documentation says all 4xx errors except 429 are handled alike, so 404 and 410 work the same (Google: How HTTP status codes affect Google's crawlers).

Don't send every dead page to your home page. Google warns that redirecting many old URLs to one unrelated page, such as the home page, "can confuse users and might be treated as a soft 404 error" (Google Search Central: Site moves with URL changes).

What should a custom 404 page include?

A way forward for someone who wanted to hire you a second ago. Your platform's default page usually says "not found" and offers a home link. A good one does more:

  1. A plain message. "We can't find that page." No jokes that confuse a customer in a hurry.
  2. A search box, if your site has search.
  3. Links to your main services. The visitor likely wanted one of them.
  4. Your phone number and booking button, visible without scrolling. This is the part that recovers a lead.
  5. Your normal header, menu and footer, so it looks like your site, not an error.

Shopify's theme documentation puts it in one line: the page should make clear the page wasn't found, and "you should provide obvious options for how to proceed", such as popular pages and a search bar (Shopify Developers: 404 template).

Don't make the page jump to the home page after a few seconds. That turns it into a redirect, which brings back the soft 404 problem below.

The soft 404 mistake

The page must still send the 404 code, even though it looks friendly. If it sends "200 OK" (meaning "here's your page"), Google flags it:

"This means that it returns a user-friendly "not found" message but not a 404 HTTP response code." (Search Console Help: Page indexing report)

Google's fix: return a 404 code for pages that really don't exist. A friendly page and the right code go together:

"You can return a 404 response code while serving whatever content you want." (Google Search Central Blog: Do 404 errors hurt my site?)

How to check your code: open a made-up address on your site (`yoursite.com/test-xyz`) in Chrome, open DevTools, go to the Network tab and reload. The Status column shows the HTTP response code for the page (Chrome DevTools: Inspect network activity). You want 404.

How to set one up on your platform

PlatformWhereNote
WordPressYour theme's 404 template (`404.php`; block themes use an HTML template of the same name)If the theme has none, WordPress falls back to its index template (WordPress: Template hierarchy)
SquarespacePages panel, System Pages, 404 Page; pick a page from your Not linked sectionSquarespace says a custom page may trigger a "Soft 404" alert in Search Console; it suggests switching back to the default or adding noindex (Squarespace Help Center: Creating a custom 404 page)
WixPages & Menu, add a "(404) Error Page"Needs a premium plan; the address always contains "error404" (Wix Help Center: Customizing your 404 error page)
ShopifyTheme editor, 404 page templateAdd sections with links and search (Shopify Developers: 404 template)

How to find your broken pages

  • Search Console: the Page indexing report lists URLs under "Not found (404)". Google says it keeps trying these for a while and crawls them "less and less often"; there's no way to make it forget them (Search Console Help: Page indexing report). See Google Search Console for a small business.
  • A site crawler: Screaming Frog's SEO Spider is free for up to 500 URLs per crawl, and its free version finds broken links (Screaming Frog: SEO Spider user guide, General). It follows every link on your site and lists the dead ones. Our Screaming Frog walkthrough shows the basics.
  • Your analytics: give the 404 page a clear title ("Page not found"), and your pages report shows how often people land on it, and from where.

Check after any redesign, platform move or service change. That's when most pages break, as in traffic dropped after a website redesign.

Example

A plumber who renamed pages (US dollars)

After a redesign, `/services/drain.html` became `/drain-cleaning/`. Search Console shows 40 addresses under "Not found (404)". Twelve are old service pages, two with links from a local news site. The owner redirects those twelve to the matching new pages and ignores the 28 junk addresses. A $1,500 redesign no longer throws away the links the old pages earned.

A Toronto salon that dropped a service (Canadian dollars)

The salon stopped offering lash extensions. The old page had a few visits a week. There's no close match, so the page returns 404, and the 404 page shows the booking button and links to brows, cuts and colour. A CAD $80 visit can still come from a dead link.

FAQ

Should I redirect all 404s to my home page?

No. Google says mass redirects to the home page can confuse users and may count as soft 404s. Redirect only to a matching page.

How long until 404 pages leave Search Console?

There's no fixed time. Google keeps retrying a 404 address, less and less often, and can't be told to forget it.

Should my custom 404 page be indexed?

No. Google doesn't index pages that return a real 404 code. If your platform serves it as a normal page, add noindex.

Will fixing 404s raise my rankings?

Only where the dead page had links or visitors worth keeping. 404s alone don't count against your site, so clearing junk addresses changes nothing.

Different for you?

Keep learning

NextWhy website traffic dropped after a redesign, and how to fix itYour new site launched and Google traffic or calls fell. The usual causes (missing redirects, a leftover noindex, deleted pages) and how to check each one.

Do it yourself

Crawlability checklist: make every page reachable by GoogleA crawlability checklist for a small business site: find orphan pages, robots.txt blocks, broken links, redirect chains and server errors, with free tools.

Ask us one question

One line is enough. We reply by email.

Sources

  1. Google Search Central Blog: Do 404 errors hurt my site?
  2. Search Console Help: Page indexing report
  3. Google Crawling Infrastructure: How HTTP status codes affect Google's crawlers
  4. Google Search Central: Crawl budget management for large sites
  5. Google Search Central: Site moves with URL changes
  6. Google Ads Help: Destination requirements
  7. MDN Web Docs: 404 Not Found
  8. Chrome DevTools: Inspect network activity
  9. Squarespace Help Center: Creating a custom 404 page
  10. Wix Help Center: Customizing your 404 error page
  11. Shopify Developers: 404 template
  12. Screaming Frog: SEO Spider user guide, General
  13. WordPress Developer Resources: Template hierarchy