301 redirect map for a site migration

Match old URLs to the best new URLs for a site migration or redesign, flag pages with no match and output a ready-to-import 301 redirect map.

Published
Works with
ChatGPT, Claude and Gemini
Level
Advanced
By
GoodAIPromt editorial team

During a redesign or domain move, the redirect map decides whether rankings and backlinks carry over. Matching hundreds of old URLs to new ones by hand is slow, and redirecting everything to the homepage throws value away. This 301 redirect map prompt matches old URLs to the closest new page by topic, flags orphans and outputs a table you can import into your server or CMS.

The prompt

Act as a technical SEO specialist handling a site migration. Build a 301 redirect map.

Migration type: 
Old URLs with titles (and traffic/backlinks if known):

New URLs with titles:

Pages intentionally removed: 
Redirect format needed: 

Do this:
1. Match each old URL to the most relevant new URL by topic and intent (not just similar words). Give a confidence level: high / medium / low.
2. For old URLs with no good match, suggest the closest parent category or recommend 410 if the content is truly gone — never mass-redirect to the homepage.
3. Flag high-value old URLs (traffic or backlinks) with low-confidence matches for manual review.
4. Spot redirect chains and loops, and patterns that can be handled with one rule (e.g. /blog/YYYY/MM/slug → /blog/slug).
5. Output: a review table (old URL, new URL, confidence, note) and the final map in my requested format.
6. A post-launch check list: crawl old URLs, confirm 301 status and single hop, update internal links and sitemaps.

0 of 5 blanks filled

How to use it

  1. Export every old URL from a crawl, analytics and backlink tool, not just the sitemap.
  2. Review all medium and low matches yourself before launch.
  3. Test the redirects on staging with a crawler, then again right after launch.

Tips

  • Keep redirects in place long term; removing them later can lose backlink value.
  • Update internal links to point straight at new URLs instead of relying on redirects.

Frequently asked questions

What does this prompt do?

Match old URLs to the best new URLs for a site migration or redesign, flag pages with no match and output a ready-to-import 301 redirect map.

Which AI tools does it work with?

It is written for ChatGPT, Claude and Gemini. It also works in other AI tools that accept text prompts, with small changes.

What do I need to fill in?

5 blanks: redesign / new cms / new domain / https / merging sites; paste list — url, title, sessions, referring domains; paste list — url, title; list or "none"; e.g. csv for a plugin / apache .htaccess / nginx / cloudflare bulk redirects. Click each blue blank on the page, type your details and press Copy prompt.

Is this prompt free to use?

Yes. You can copy and use it for personal and commercial work.

301 redirectssite migrationtechnical seoredesign

More prompts for ChatGPT, Claude, Gemini.