Leaving WordPress without losing SEO or email
Published · Json Knepper
You can leave WordPress without losing your search rankings if every old page address sends visitors to its new page with a permanent 301 redirect, and your titles and content carry over. Protect your email before anything else: copy every DNS record first, and on move day change only the records for the website.
Email first, website second
Many WordPress sites share a host with the business’s mailboxes, or keep their DNS at that host. That’s how a website move quietly breaks email. Before you start, copy every DNS record on your domain into a document, so you can put back anything that goes missing.
On move day, only the website’s records change, usually an A record or a CNAME. The MX records and the TXT records for SPF, DKIM and DMARC stay exactly as they are. Afterward, check your email still passes SPF, DKIM and DMARC.
Export and back up
In WordPress, Tools, then Export, creates an XML file. WordPress.org says it holds your posts, pages, custom post types, comments, custom fields, categories, tags, custom taxonomies and users. It doesn’t list your image files, so also take a full backup from your host, including the uploads folder, and keep it until the move is settled.
Build the URL map
The URL map is a list of every old address and where it goes now. Pull old addresses from your sitemap, the Pages report in Search Console, your analytics and any redirect plugin you already run. WordPress leaves extra addresses behind that people forget:
| Old address | New address | Why it matters |
|---|---|---|
/2019/05/spring-menu/ |
/notes/spring-menu/ |
Dated post paths change on most new platforms. |
/category/news/ |
/notes/ |
Category and tag pages need a sensible new home. |
/?p=123 |
/notes/spring-menu/ |
WordPress short links get shared and bookmarked. |
/wp-content/uploads/menu.pdf |
/files/menu.pdf |
People link straight to PDFs and images. |
/about-us/ |
/about-us/ |
Kept the same, so no redirect is needed. |
Send each old address to its closest new page. Google’s site-move guide warns against pointing many old addresses at one unrelated page, such as the new home page.
The map is the slow part of the move. Leave WordPress without losing rankings or email is my guide with a worksheet for it, plus the DNS changes and a rollback plan.
Carry the SEO over, page by page
For each page, bring across the title, the meta description, the headings, the body text, image alt text and the links between your own pages. Keep the same address wherever the new platform allows it. Every address that stays the same is one less redirect to get right.
Set the redirects
Google recommends permanent server redirects, 301 or 308, where you can. Send each old address straight to its final page, not through a chain of hops. Test every row of your map after launch. Google says to keep the redirects for as long as possible, generally at least one year.
Search Console on day one
Make sure you are an owner of your Search Console property before the move, not after. On launch day, submit the new sitemap and check your most important pages. If you are keeping the same domain, you don’t need the Change of Address tool. Google says it is only for moving to a different domain or subdomain.
Watch for 30 days, then retire the old host
Google says a medium-sized site can take a few weeks or more to settle, and rankings can move around while it does. Check the Pages report for new “not found” errors, and fix each one with a redirect. Keep the old hosting account until you’ve confirmed every page, form and mailbox works on the new setup.
Already moved and lost traffic?
Start with the old addresses. Test each one and see where it lands. Look for redirects that go to the home page, chains of hops, pages that now say “not found,” and pages whose titles or text changed in the move. Those are the usual causes, and each one has a direct fix.
Common questions
Do I have to redirect every page when I leave WordPress?
Every page that has visitors, links or rankings, yes. Send each old address to the closest new page. Google warns against sending many old addresses to one unrelated page, such as the new home page.
How long should I keep 301 redirects after a move?
Google's site-move guide says to keep redirects for as long as possible, generally at least one year.
Will my email break if I move my website?
It can, if your mail runs on the same host or your DNS lives there. Copy every DNS record before you start, and on move day change only the website's records. Leave MX and the SPF, DKIM and DMARC records as they are.
Does the WordPress export include my images?
WordPress.org describes the export as an XML file of posts, pages, custom post types, comments, custom fields, categories, tags, custom taxonomies and users. It doesn't list the image files, so take a full backup from your host as well.
Do I need Search Console's Change of Address tool?
Only if the domain changes. Google says the tool is for moving from one domain or subdomain to another. If you keep the same domain, submit the new sitemap and watch the reports instead.
How long until my rankings settle after the move?
Google says that for a medium-sized site it can take a few weeks or more before the new addresses replace the old ones in search, and that rankings can move around during that time.
Prefer us on Google If you read us often, tell Google to show our pages first.