← Back to library
MarketingPrompt

Recover backlinks that point at pages you moved

Kourosh Ghaffari (@BuildingWaves) wrote an X Article listing twelve ways to earn backlinks with AI, and he starts with links you already have: other sites still sending readers to pages you removed or moved. The agent checks which links still exist, matches each dead URL to a fitting page and proposes fixes for you to approve.

  • OutcomeGet a reviewed change list of redirects or restorations for old URLs that other sites still link to, plus a recheck plan, so those visitors and links reach a page that serves the same purpose again.
  • SetupUnder an hour
  • LevelIntermediate
  • CreditKourosh Ghaffari (@BuildingWaves)
View original
Works with
Grok BotChatGPT agentClaudeClaude Code

Published Oct 26, 2026Updated Oct 26, 2026AI dry run on sample input: passed Oct 26, 2026Source verified Oct 26, 2026

When should you use it?

  • You redesigned, migrated or pruned a site and some old URLs now return errors
  • A backlink tool or server log shows external links landing on missing pages
  • You want quick SEO wins that need no outreach at all

Not for: Sending every dead URL to the homepage, which rarely helps the person who clicked; Letting the agent edit redirects or the live site without your review; Building new links from scratch (see the other playbooks from the same article)

What do you need, and what do you get?

You need

  • A broken-backlink export from your SEO tool, or old URLs paired with the outside pages that link to them
  • Your current sitemap or page list, with a line on what each key page does
  • Where redirects live on your site (hosting rules, CMS plugin or server config) and who can change them

You get

  • For each old URL: whether the external link still exists, the response the old URL returns now, and blocked checks marked unknown
  • A proposed match (redirect target or restore), with a reason based on what the old page did
  • A change list ready for review, and a recheck plan for after the change goes live
  • A tally kept apart from new links, labeled as recovered

How does it work, step by step?

  1. Gather the old URLsExport broken backlinks from your SEO tool, or pull old addresses from analytics and server logs that still get outside traffic.
  2. Confirm both endsHave the agent open each linking page to confirm the link is still there, then request the old address and record what comes back. Access blocks are unknown, not broken.
  3. Match by purposeCompare what the old page helped readers do with your current pages. A moved template should point to the template, not to a product page.
  4. Approve the listReview the proposed permanent redirects and restorations, then apply them yourself or hand them to whoever manages the site.
  5. Recheck and recordAfter the change, follow each path from the outside page to the final destination and log it as a recovered link.

The prompt

The original prompt by @BuildingWaves, word for word, with a link to where it was published. Below it is our adapted version with fill-in blanks, if you want it. Works in Grok Bot, ChatGPT agent, Claude and others. Values in lime are placeholders.

Original prompt by @BuildingWaves

Word for wordby @BuildingWaves
Inspect these old URLs and referring pages. Confirm which links still exist and which destinations return 404 or 410. Treat blocked requests as unknown. Compare each old page's purpose with my current pages. Propose a matching redirect or restoration, with reasons. Return a change list for review, then a live-check plan. Count these as recovered links, not new ones.

Exactly as published by @BuildingWaves in X Article: SEO/AEO need backlinks, babe. Get them with AI.

Our adapted version (optional)

Fill in the blanks (optional; the copied prompt uses your values)

Adapted prompt2 variables
Help me recover links to pages I moved or deleted. Do not edit my site.
Old URLs and the outside pages linking to them: {broken_backlink_export}. Current pages: {sitemap_or_page_list}.

1) Open each outside page and confirm it still links to the old URL. Record the anchor text if visible.
2) Request each old URL and record the response. If a request is blocked, mark the result unknown.
3) Describe what each old page helped readers do, then pick the current page that does the same job. If none fits, say so and suggest leaving it as not found.
4) Return a table: old URL, linking pages, current response, proposed fix (redirect target or restore), reason.
5) Add a recheck plan for after the changes go live, and tally them as recovered, kept apart from new links.

What can go wrong?

  • A redirect to an unrelated page can be treated like a missing page by search engines and annoys the visitor anyway. Match the need or leave it gone.
  • Some checks fail because a site blocks bots, not because the link is missing. Mark those unknown and look by hand.
  • Redirect chains (old to older to new) slow pages and can break. Point each old address straight at the final URL.
  • Counting recovered links as new wins inflates your reporting. Keep them in their own column.

Our take

Ghaffari is right to put this first: links you already earned are the cheapest ones to win back, because nobody has to be persuaded of anything. The fix lives entirely on your own site. His prompt is careful in the ways that matter, so we kept it word for word below: it treats blocked requests as unknown, matches by the old page's purpose, and keeps recovered links out of the new-link count. We added the practical edges. Point redirects straight at the final page to avoid chains, accept that some dead pages have no honest match, and test every path again once the change is live, since rules often break on trailing slashes or capital letters. Google's own guide to redirects, linked below, is the right reference if you are unsure which type to use. In our dry run on a fictional freelance-invoicing site with five old URLs, the agent found that the old late-payment template URL still had two outside links (one confirmed, one behind a block it marked unknown) and proposed a permanent redirect to the template's new home. It matched an old invoice template to its replacement, noted a pricing page already redirected correctly, and recommended leaving a retired webinar page gone rather than sending it to the homepage. It returned a change list and a recheck plan and edited nothing.

Where the time goes back: Checking dozens of old addresses, linking pages and possible matches by hand takes an afternoon. The agent does the lookups, and you spend your time on the judgment calls.

FAQ

Do I need a paid backlink tool?
It helps, but it is not required. Server logs, analytics landing pages with errors, and Search Console's crawl reports can surface old addresses that still get outside visits.
Should every dead page get a redirect?
Redirect only when a current page serves the same purpose. If nothing matches, a clear not-found or gone response is more honest than a mismatched redirect.
Will the agent change my site?
Not in this playbook. It produces the change list and the recheck plan; you or your developer apply the changes.

Source and credit

The original prompt on this page is by @BuildingWaves, shown word for word with a link to where it was published. The summary, notes and adapted version are ours.

Original
X Article: SEO/AEO need backlinks, babe. Get them with AI
Creator
Kourosh Ghaffari (@BuildingWaves)
Published on
X
Original date
Oct 26, 2026
License
Not openly licensed; the original prompt is shown word for word with credit and a link to the original
Originally for
Custom agent
AI dry run
Oct 26, 2026: passed. Dry-run tested by our AI test agent on sample input. Blocked check kept unknown; matched by purpose; no homepage redirects; no site edits.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 26, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Also see: Redirects and Google Search by Google Search Central. More official guidance we used; credited and linked only, nothing from it is reproduced word for word. Not legal or financial advice.

Are you the creator? Claim or correct this page.

More in Marketing

All 97 Marketing playbooks →

Related playbooks

MarketingPrompt✓ AI dry run

Answer a journalist's request using only facts you can back

For each media request, find out quickly whether you are a fit, then get a short answer-first draft built only from experience and data you confirmed, with unsupported lines flagged and the deadline checked.

Credit: Kourosh Ghaffari (@BuildingWaves)

Minutes
MarketingPrompt✓ AI dry run

Build an X brand assistant and hook bank

Research how you sound on X, keep a living bank of hooks and stories, and get post drafts you approve and publish yourself.

Credit: Miles Deutscher (@milesdeutscher)

Under an hour
MarketingPrompt✓ AI dry run

Turn unlinked mentions of your brand into link requests

Get a short list of pages that already mention you without a link, each with the exact sentence, the page a link should point to, the public contact and a brief request draft you send yourself.

Credit: Kourosh Ghaffari (@BuildingWaves)

Under an hour
MarketingPrompt✓ AI dry run

Gather the X, Reddit and LinkedIn debate into one sheet

Get a single spreadsheet of the most discussed posts on a topic across three platforms, with a summary and link for each, before you start writing.

Credit: Daria Cupareanu

Minutes