Skip to content
FunnelGuard

Fix guide by FunnelsGuard

AI assistants link to 404 or old URLs: how to find and fix it

SEO-400High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

AI assistants answer questions using pages they crawled or stored earlier. When they cite your site, they link to the address they have on record. If you changed the URL, deleted the page or migrated the site since then, that link now returns a 404 (page not found) or lands on an old page that is out of date.

It is different from an assistant making up an address that never existed (see the related guide on hallucinated URLs). Here the URL was real once, and you own the fix.

Why it costs you leads or sales

A person who clicks a citation has already been told your page answers their question. If they hit an error page, most will go back and click a competitor. You paid for the visibility with content and effort, then lose the visit at the last step.

Old URLs that still load can be just as bad. A cited pricing or product page that is out of date can show wrong prices or a discontinued plan, which sends buyers into a funnel that no longer works.

Where the visit is lost
  1. User asks AIAsks about your product or service
  2. AI cites your URLUses an address from an older crawl
  3. Click lands on 404Page moved or deleted, no redirect
  4. Visitor leavesGoes back to the AI answer or a rival
  5. Lead or saleNever reached

The assistant cites an address that no longer exists, so every later step is lost.

AI referral visits by landing resultExample numbers
AI referral visits by landing result (example)Landed on live page: 70 visits; Landed on 404: 30 visits027547030Landed on live pageLanded on 404visits

Example: 100 monthly visits from AI assistants, where 30 land on a 404 and do not convert.

How to check if your site has it

Find dead and old URLs that AI sends traffic to
  1. Filter AI referrals in analyticsGoogle Tag Manager

    In GA4, open Reports > Acquisition > Traffic acquisition, add a filter on Session source containing chatgpt.com, perplexity.ai, gemini.google.com, copilot.microsoft.com or claude.ai. Then add Landing page as a secondary dimension.

  2. Look for error pages in the landing list

    Landing pages with a 404 title, or with near-zero engagement time, are candidates. In GA4 you can also search the Page title column for 'Page not found'.

  3. Check server logs or CDN logs

    Search for requests with a 404 status where the referrer contains an AI domain. Also look at 404s requested by bots such as GPTBot, OAI-SearchBot or PerplexityBot, which show that they hold old addresses.

  4. Check Google Search Console

    Open Pages (Indexing) and review 'Not found (404)' and 'Page with redirect'. Addresses listed here are often the same ones AI tools learned.

  5. Ask the assistants directly

    Ask ChatGPT, Perplexity and Gemini questions about your brand, pricing and main products. Click each cited link and note any that fail or show old content.

Find 404s with an AI referrer in an access log (nginx or Apache combined format)bash
awk '$9 == 404' access.log | grep -Ei 'chatgpt.com|perplexity.ai|gemini.google.com|copilot.microsoft.com|claude.ai' | awk '{print $7}' | sort | uniq -c | sort -nr | head -50

How to fix it

The core fix is a 301 redirect (a permanent redirect) from each old address to the most relevant live page. Send people to a page that answers the same question, not always to the home page. If there is no equivalent page, restore the content or create a useful replacement.

Add 301 redirects on your platform
  1. Use a redirect tool

    Use the Redirection plugin, or the redirects feature in Yoast SEO Premium or Rank Math. Add each old path as the source and the new page as the target, type 301.

  2. Review the 404 log

    Redirection and Rank Math can log 404s. Redirect the ones that have real value.

nginx: permanent redirect that keeps the query stringnginx
location = /old-pricing {
    return 301 /pricing$is_args$args;
}
Apache .htaccess: permanent redirect (query string is kept by default)htaccess
Redirect 301 /old-pricing /pricing
Full clean-up routine
  1. List the dead URLs

    Combine the lists from analytics, logs and Search Console into one sheet with the old URL, the best replacement and the status.

  2. Map each one to a new page

    Pick the closest match in topic. Do not redirect everything to the home page, as that confuses visitors and search engines.

  3. Add the 301 redirects

    Use the tab above for your platform.

  4. Fix internal links and the sitemap

    Update menus, buttons and content links to the new URL. Make sure your XML sitemap lists only live 200 pages, and your llms.txt file, if you have one, points to live pages.

  5. Ask for a recrawl

    In Search Console, use URL Inspection on key new pages and request indexing. Bing Webmaster Tools has a similar submit option and feeds Copilot and ChatGPT search.

Old cited URL before and after

No redirect

  • /old-pricing returns 404
  • AI visitors see an error page
  • Sitemap still lists the old URL

301 redirect in place

  • /old-pricing returns 301 to /pricing
  • Visitors land on the live page
  • Sitemap lists only /pricing

How to confirm it's fixed

Confirmation checks
  • Every old URL on your list returns a 301 and ends on a 200 page in one hop (test with curl -I or a redirect checker).
  • The destination page matches the topic of the old one.
  • UTMs and other query parameters survive the redirect.
  • No 404 or redirect URLs appear in your XML sitemap.
  • The 404 count from AI referrals in your logs or GA4 falls over the following weeks.
  • The links cited by ChatGPT, Perplexity and Gemini open working pages when you click them.

How to prevent it happening again

How old URLs turn into AI 404s
  1. Month 0

    An AI tool crawls your page and stores its address.

  2. Month 3

    You rename the page or relaunch the site and skip redirects.

  3. Month 4

    Assistants still cite the old address and visitors hit 404s.

  4. Month 5

    You add 301 redirects and update the sitemap.

Habits that prevent it
  • Never change or delete a URL without adding a 301 in the same release.
  • Keep a redirect map for every migration or redesign and test it before launch.
  • Keep old redirects for years, not weeks.
  • Review 404s from Search Console and logs monthly.
  • Keep sitemap and llms.txt limited to live, final URLs.
  • Run your monthly check of AI answers about your brand and click every link.

How FunnelGuard handles this

FunnelGuard does not check this yet. Spotting URLs that AI assistants cite and that now return 404 is a possible future check, not a current feature.

What FunnelGuard does today is run your real customer journeys on a schedule, such as lead forms, checkouts and booking buttons, and check each step. If a page in a journey starts returning an error, that step fails, is re-checked from a second region and you get one alert with a screenshot. This covers the pages you have set up as journeys, not every URL an AI might cite.

To watch for cited dead URLs yourself, use a GA4 exploration filtered to AI sources with landing pages, a monthly log search like the one above, the Page indexing report in Search Console, and a crawler such as Screaming Frog or a free link checker run against your sitemap.

Questions people ask

Why is ChatGPT linking to a 404 page on my website?

ChatGPT cites addresses it learned from earlier crawls or search results. If you have since renamed, moved or deleted that page without a redirect, the stored link now returns a 404. Add a 301 redirect from the old URL to the closest live page.

How do I find which broken URLs AI assistants are sending traffic to?

In GA4, filter Traffic acquisition by sources such as chatgpt.com and perplexity.ai, then add Landing page as a dimension and look for error pages. You can also search server logs for 404 responses with an AI referrer, and check Search Console for 404s.

Should I use a 301 or a 302 redirect for old URLs that AI cites?

Use a 301 when the move is permanent, which is the usual case for old or renamed pages. A 302 signals a temporary move and may keep the old address in use for longer.

How long until AI assistants stop linking to the old URL?

It varies by assistant and there is no fixed time. Some update within days, others take weeks or months. The redirect protects visitors from the start, so keep it in place permanently.

Can I make Perplexity or Google AI Overviews update a cited URL?

You cannot force an update, but you can speed it up. Redirect the old URL, fix your sitemap and internal links, and request indexing in Google Search Console and Bing Webmaster Tools so crawlers find the new address sooner.

Is it bad to redirect all dead URLs to the home page?

Yes, it is usually a poor choice. Visitors who expected a specific answer land on a generic page, and search engines may treat mass home page redirects like soft 404 errors. Redirect each URL to the most relevant page.

What if the AI makes up a URL that never existed on my site?

That is a separate problem, because there is no old page to redirect. You can add redirects for the likely made-up addresses to the right live page, or create a helpful 404 page that links to your main sections.

Does FunnelGuard detect AI links to 404 pages?

No, not yet. It is a possible future check. FunnelGuard does monitor your real customer journeys and alerts you when a page in a journey breaks.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.