Move a site without losing traffic
Change a domain or your URLs without losing search traffic: list every URL that matters, map each one, build the redirects, and check every one live.
A move loses traffic in three ways: old URLs that answer 404, redirects that go to the wrong page or take several hops, and a new site that still points search engines at the old addresses. The seopen-migration skill closes all three, then checks the result on the live site. Use it for a new domain, a folder that moves (/blog to /journal), a subdomain merged into the main site, a new URL pattern, or a redesign with new URLs.
Before you start
- Install the plugin and run
/seopen:seopen-setup, with a key that has Can make changes. A backlinks lookup needs Can spend research credits. - Start before the move, not after. The list of URLs that matter comes from the old site's data.
- Open Claude Code in your site's repository: Next.js App Router, Astro, SvelteKit or plain HTML. It writes redirects for the common hosts, including Vercel, Netlify, Cloudflare Pages, nginx and Apache.
1. Ask for it
/seopen:seopen-migration
Or "we're moving the blog to /journal", or "we're changing domain to fernhill.example". It asks what changes, the old and new addresses exactly as they'll be served (https, www, trailing slash), and where production is hosted.
2. Every URL that matters
It builds one list from, all free:
- Search Console: every page with at least 1 click or 10 impressions, as far back as SEOpen holds;
- Analytics: landing pages with organic visits, key events and revenue;
- Indexing: the pages Google has, and those it hasn't;
- the live sitemap, your routes, and the redirects you already have.
The one paid step is which pages other sites link to. It quotes the price and asks. Without it, pages that only have links from other sites, and no search traffic, may be missed, and it says so.
3. The map
Each old URL gets one outcome:
- Same: it doesn't change. Most URLs should be here. A redesign isn't a reason to rename pages.
- Move: to the page with the same content or purpose, or the closest by topic: a removed product goes to its category, never the home page.
- Pattern: a whole folder, only when every old path has a page at the new one.
- Gone: a 410, only with no clicks, no links and your yes.
It saves the map as seo/redirect-map.csv, shows you the counts, the top 20 moves by traffic and every match it guessed, and waits for a yes before writing any config.
4. The cutover, on a branch
On seopen/migration, it changes:
- Redirects in your host's file: one hop, permanent (301 or 308), one-to-one rules before patterns, with older redirects updated so nothing chains.
- The base URL everywhere the site builds absolute addresses.
- Canonicals on every template.
- The sitemap, and its line in robots.txt.
- Structured data, hreflang, feeds and Open Graph addresses.
- Internal links, so none relies on a redirect.
- robots.txt, so the new site allows crawling and the old domain doesn't block the old URLs.
It runs your build, tests every redirect against a local or preview build with a script, then runs the preflight check on the branch and fixes what it finds.
5. Record it
Before you deploy, it logs the top 10 to 20 moved pages in SEOpen with their new address and title. For a domain move, the new domain needs its own SEOpen project: it offers to create one, and you connect the new Search Console property to it. The old project keeps the history.
6. Launch day
You deploy, and change what lives outside the repo: environment variables, DNS and certificates for both domains, your Google Business Profile and directory listings for a local business, the product feed for a store. Then tell the agent it's live. It:
- runs the redirect script against production, and every row must pass;
- asks SEOpen to check the moved pages are live;
- offers to send the new URLs to Bing and others through IndexNow;
- for a domain move, walks you through Change of address in Search Console and Site Move in Bing Webmaster Tools.
Keep the redirects at least a year, and keep the old domain registered and serving them.
7. The four weeks after
Once a week, ask the agent to check the move. It compares clicks by page on both projects, and looks for old URLs still getting clicks, new URLs not picking them up, and pages Google reports as missing. A dip in the first weeks is common. Pages that stay out of Google go to get pages indexed.
What it costs
Free, except the backlinks lookup, which is quoted first.
Where it stops
- No redirect to the home page for many pages.
- No 410 without your yes, page by page in one list.
- No merge or deploy: you ship it.
- It never invents a URL or a number.
Without an agent
In SEOpen, list your pages by clicks in Search Console and check Indexing for what Google holds, then build the map yourself. The preflight check works on any branch even without SEOpen connected, and catches removed URLs without a redirect.
Updated