agentleFS
sharabarinilliasharabarinillia/SEO-GEO-Vercel-Playbook-Skill/skills/site-migration/SKILL.md

site-migration

Skill1 starsChanged 28 days agoMITView on GitHub

Plans and checks a website migration or relaunch without losing search traffic. Covers an inventory of every old URL (Search Console, old sitemaps, a crawl), the old-to-new redirect map, permanent redirects on Vercel (vercel.json, bulk redirects), one host and one URL per page, tests before and after the DNS switch with scripts/check-redirects.mjs, IndexNow submissions to Bing with scripts/indexnow.mjs, and 4–8 weeks of monitoring. Use it when replacing a site (Wix, WordPress, Webflow, Squarespace, a custom CMS) with a new build, changing domains or URL structures, merging or deleting pages, moving to Vercel, or when old URLs return 404 after a launch.

3 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 9 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 3 edited versions we read keep these.

  • 9

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Search engines rank URLs. When URLs change, rankings move to the new URLs only if every old URL answers a permanent redirect straight to …

    line 22
  2. Distinctive:

    Search Console → Pages and Performance exports (the URLs that have impressions or links).

    line 29
  3. Distinctive:

    Test on the preview deployment: before the DNS switch:

    line 40
  4. Distinctive:

    Every row must be one hop, 301/308, ending on a 200 at the expected path.

    line 46
  5. Distinctive:

    Keep redirects for at least a year.

    line 68
  6. Distinctive:

    No chains: point every old URL straight at the final page (the checker warns on 2+ hops).

    line 69
  7. Distinctive:

    No redirects in JavaScript or meta refresh for moved pages: use server redirects.

    line 70
  8. Distinctive:

    Don't change URLs and content and domain at once if it can be avoided.

    line 71
  9. Distinctive:

    Ask before the DNS switch and before IndexNow submissions: both are outward-facing.

    line 72

“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Site migration without losing rankings

Search engines rank URLs. When URLs change, rankings move to the new URLs only if every old URL answers a permanent redirect straight to its closest new page. Most traffic lost in a relaunch comes from missing or wrong redirects, not from the new design.

Steps

  1. Inventory every old URL (before anything is switched off):
    • Search Console → Pages and Performance exports (the URLs that have impressions or links).
    • The old site's sitemaps, and a crawl of the live site (any crawler, or a Firecrawl map).
    • Old URL patterns that may still be linked: /en/…, /post/…, /index.php?id=…, PDFs.
  2. Map each old URL to its closest new page in a CSV (old,new). Old posts without a new equivalent go to their topic page or the home page; never redirect everything to the home page by default. See references/runbook.md.
  3. Implement the redirects as permanent (301 or 308; Google treats both as permanent) in the host config: references/vercel-redirects.md. Anchor every pattern (^/contact$) so an old URL can never catch a new one (/contact/).
  4. Decide the canonical host and URL form and redirect the rest: apex → www (or the reverse), http → https, /path → /path/ (or the reverse), /index.html → /.
  5. Test on the preview deployment before the DNS switch:

    node <skill>/scripts/check-redirects.mjs --map redirects.csv --base https://<preview>.vercel.app

    Every row must be one hop, 301/308, ending on a 200 at the expected path.

  6. Switch DNS, then test again on the real host, plus the host variants:

    node <skill>/scripts/check-redirects.mjs --map redirects.csv --base https://www.example.com
    node <skill>/scripts/check-redirects.mjs --hosts https://www.example.com
  7. Tell the search engines: submit the new sitemap in Search Console and Bing Webmaster Tools, inspect the 10 most important URLs, keep the old verification tags, and send IndexNow (Bing and Copilot; Google does not use it):

    node <skill>/scripts/indexnow.mjs --host www.example.com --since all --dry   # check the list
    node <skill>/scripts/indexnow.mjs --host www.example.com --since all         # send (ask first)
  8. Monitor for 4–8 weeks: Page indexing weekly, new 404s in both consoles, queries that brought traffic before against after. Fix any old URL that 404s with a redirect, the same day.

Rules

  • Keep redirects for at least a year; for URLs with external links, keep them for good.
  • No chains: point every old URL straight at the final page (the checker warns on 2+ hops).
  • No redirects in JavaScript or meta refresh for moved pages: use server redirects.
  • Don't change URLs and content and domain at once if it can be avoided; each change adds risk.
  • Ask before the DNS switch and before IndexNow submissions: both are outward-facing.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.