6 Claude Prompts for Blog Migrations (Copy & Paste)

A clean blog migration is a weekend of work when the redirect map exists first, and three weeks of cleanup when it does not. Nearly all of that time goes to the same job: matching old paths to new ones and proving nothing broke. These six Claude prompts for blog migrations take the matching work off your hands, so your hours go to decisions instead of row-by-row spreadsheets.

Step 1 — Inventory the old URLs before you touch the CMS

1. Build a sortable URL inventory

Here is a sitemap export from [old domain] with [number of URLs] entries: [paste URLs]. Turn it into a table with columns for path, parent section, and last-modified date where the export includes one. Flag paths that duplicate another path except for a trailing slash or letter case.

What it does: Converts a flat export into a sheet you can filter, sort, and hand to someone else.

How to use: Replace [old domain] and [number of URLs], then paste paths only, one per line. Work from the full export, not a sample.

2. Classify every path

For each path in this list [paste URL list], assign one label: keep the same path, move to [new URL pattern], merge into another post, or retire. Decide from the parent section and the slug alone. Add a one-line reason for every move and every merge.

What it does: Produces a first pass you can edit instead of a blank column you have to fill.

How to use: Replace [new URL pattern] with the structure your rebuilt site will use, then review the retire list by hand. The model is optimistic about deleting content.

3. Protect the pages that carry weight

These are the posts on [old domain] that currently earn traffic or links: [paste paths with pageviews and referring domain counts]. Rank them by what a broken URL would cost me, and mark which ones need a hand-written redirect instead of a pattern rule.

What it does: Stops your best posts from being flattened into a generic section rule.

How to use: Replace [old domain] and paste the metrics next to each path. If a post has links but no traffic, it still belongs on the hand-written list.

Step 2 — Write the redirects and prove they work

4. Draft the redirect rules

Convert this mapping table into redirect rules for [server or CDN, such as Nginx, Cloudflare, or Netlify]: [paste from-path and to-path columns]. Use permanent redirects, preserve the query string, and comment every rule that is not a pattern match.

What it does: Turns your spreadsheet into something you can deploy and read six months later.

How to use: Replace [server or CDN]. Read the rule order yourself: a broad pattern placed above a specific path will swallow it.

5. Audit for chains and loops

Review these redirect rules for chains, loops, and rules that shadow a more specific path: [paste rules]. List each problem with both paths involved, then give the single rule that should replace the broken set.

What it does: Catches the redirects that resolve to another redirect and quietly lose their ranking signal.

How to use: Paste rules in the order they run on the server. Fix the shadowing rules first; the chains are usually a symptom of them.

6. Run the post-cutover sweep

These are the crawl results for [new domain] after cutover: [paste old paths with the status code each returned]. Group them by outcome — resolves to a live page, redirects to a live page, redirects to a missing page, dead, or server error — and tell me which group to fix first and what to change for each.

What it does: Turns a wall of status codes into a repair order.

How to use: Replace [new domain] and paste the raw crawl output. Keep the old sitemap live for a few weeks so you can rerun this.

Common mistakes

  • Mapping only top-level pages, so deep posts fall through to the homepage and readers land on nothing they asked for.
  • Pointing an old post at a category page when the post still exists under a new slug, which sends readers somewhere adjacent but wrong.
  • Deleting the old sitemap and analytics property on launch day, which removes the evidence you need to check the move.

Keep going

More free prompts for Blogging are waiting in the GuPrompt library.

Leave a Comment