Marketing Ops with Sam
Blog

AI Search

Your 404 page is a lead magnet in disguise 🚪

AI assistants send people to pages that don't exist. Here's how to catch those visitors with a redirect and a 404 page that books calls.

Toy door standing ajar with a 404 sign, illustrating 404 page best practices for catching lost visitors

Quick answer: a good 404 page still returns a real 404 status, but it helps the visitor recover: same navigation as the rest of the site, a few links to your best pages, and one clear offer. For dead URLs that keep getting visits, which now often come from AI assistants inventing links, add a 301 redirect to the closest live page. Check your 404 traffic weekly.

Picture this. Someone asks an AI assistant for the best marketing automation consultant in Melbourne. It names you, then gives a link to a page that sounds right but never existed. They click. They land on a grey “Page not found”.

That’s a buyer who already trusts you, walking into a wall.

The idea 💡

Treat every 404 as a lost lead: redirect the ones that keep getting visits, and make the rest of your 404 page earn its keep.

Why it works 🧠

This is happening at scale. Ahrefs looked at 16 million unique URLs cited by AI assistants and found they send visitors to 404 pages at about 2.87 times the rate of Google Search (0.43% against 0.15%). ChatGPT was the worst of the six tools tested, with 1.01% of clicked URLs landing on a 404. The causes are two: pages that used to exist and were deleted, and links that were made up to fit your site’s URL pattern.

Those percentages sound small, but the people arriving were sent by a tool they asked for a recommendation, so they’re worth catching.

Ahrefs’ own advice for site owners is simple: find the 404 pages getting 10 or more visits a month from AI sources, 301 redirect them to relevant live pages, or at least give your 404 page useful things to click.

One technical trap. Google says that when a page returns a success code but the content looks like an error, Search Console reports a “soft 404”. So your friendly 404 page must still send a real 404 status.

How to do it ✍️

  1. Find your dead URLs. In your analytics, filter landing pages that show your 404 title. Add the referrer so you can see which ones come from AI assistants. Search Console’s Pages report lists “Not found (404)” URLs too.
  2. Redirect the repeat offenders. Any dead URL with steady visits gets a 301 to the closest live page. A made-up /services/marketing-automation should land on your real services page.
  3. Fix the cause. If you deleted or renamed a page, redirect it. If AI keeps inventing the same URL, consider whether that page should exist.
  4. Upgrade the 404 page itself. Keep your normal navigation, say what happened in one friendly line, link to 4 or 5 of your best pages, and add one offer such as a booking link.
  5. Keep the 404 status. Check the response code, not just the look.

A toy magnet with small figures stuck to it, showing how a good 404 page catches lost visitors and 404 traffic A 404 page is a net, not a dead end.

Here’s a layout to copy:

Headline: This page went missing.
One line: The link may be old, or an AI assistant guessed it.
Links: Services | Your best guide | Case example | Pricing or process
Offer: Tell me what you were looking for, or book a 30 minute call.

Automate it ⚙️

The tedious part is checking, so give it to an agent. This works with whichever assistant you use (Claude, ChatGPT, Copilot Studio) wired to your analytics and site files. It’s the kind of job my AI agents work covers.

  1. Weekly trigger: pull last week’s landing pages that returned 404, with visit counts and referrers.
  2. Filter: keep URLs with 3 or more visits, or any visit from an AI assistant.
  3. Match: ask the model to propose the closest live page for each, using your sitemap.
  4. Review: send a short list to a human. Approve or edit.
  5. Publish: add the approved pairs to your redirects file and deploy.
  6. Log: record the date and URL pair so you can see the trend.

Use this prompt for the matching step:

Here are dead URLs from my site and my live sitemap.
For each dead URL, pick the single closest live page by topic and intent.
If nothing is a good match, answer "none" instead of guessing.
Return a table: dead URL | proposed 301 target | one-line reason.
Never invent a URL that isn't in the sitemap.

A toy signpost with two arrows pointing visitors to the right page, showing a 301 redirect for 404 traffic Redirect the repeat offenders and keep the human in the loop.

Pair it with tracking how often AI names you in the first place, as in share of LLM, and with the comparison pages in the “Best X for Y” page that ChatGPT keeps quoting. More mentions means more invented links, so this check matters more as you win.

Quick wins to try 🧪

  • 🔎 Search your analytics for your 404 page title today. It takes five minutes and you’ll find something.
  • 🧭 Link to your 5 best pages from the 404 page. Not 20.
  • 📅 Put your booking link on it. Some lost visitors are ready to talk.
  • ↩️ Redirect old URLs when you rename a page. Always.
  • 🧪 Test the status code. Open a fake URL and check it returns 404, not 200.
  • 🗺️ Ask an AI assistant about your brand. Click every link it gives you.

How to measure it 📊

  • 404 landings per week: total and from AI sources, trending down.
  • Recovery rate: the share of 404 visitors who click through to another page.
  • Redirected visits: visits arriving on old or invented URLs that now land on a live page.

Frequently Asked Questions

What makes a good 404 page?

A good 404 page returns a real 404 status, keeps your normal navigation, explains the problem in plain words, links to your most useful pages and offers one next step such as a booking link or search.

Should I redirect 404 pages to my homepage?

Only as a last resort. Redirect each dead URL to the closest relevant live page. Sending everything to the homepage is confusing for visitors and can look like a soft 404 to search engines.

Ahrefs found two causes: pages that existed once and were deleted, and links the assistant made up to fit a site’s usual URL pattern. Either way the visitor lands on a 404.

How often should I check my 404 pages?

Weekly is enough for most sites. Look at the dead URLs with repeat visits and fix those first.

Every dead link is a person who wanted to find you. Catch them.

Sam

If you want this built for you, book a call.

Want this built in your stack?

20 minutes. I’ll point to at least one real leak in your funnel, or tell you straight that there isn’t one.

Book a call

Get the next post in your inbox.

One short email when there’s something worth sharing.

Make AI photos that don’t look like AI.

Get the free playbook: 5 rules and 15 copy-ready prompts for photos of yourself, product shots and posters.

Free, in your inbox in a minute. You’ll also get my Friday AI idea.