It's never just pages
The content is the part of a site the client has spent years on. A rebuild that loses some of it, or puts it in the wrong place, is a worse site than the one it replaced. A migration usually has to carry:
- Pages and posts, with their rich text and page-builder layouts
- Media, often uploaded at several sizes and linked from all over the site
- Every old URL, so links and search rankings survive
- Menus, categories and SEO fields
- Form submissions, which are personal data
How hard it gets
A small brochure site
A few dozen pages and no export. Crawling the public site and rebuilding by hand is often the quickest route.
A content site with a proper export
Hundreds of posts from a WordPress export or API. Now rich text has to convert into the new editor, images need de-duplicating, and every old URL needs a redirect.
A site built on a page builder
Divi, Elementor and WPBakery store layouts as shortcodes or escaped markup inside the post body. Each one has its own quirks. Divi, for example, escapes brackets and quotes and nests global modules several levels deep. All of that has to map onto the new site's blocks.
A live business
Enquiries keep arriving while you work, so the migration has to run again on launch day. There may be several languages, years of form submissions, and no room for downtime.
The last one I did by hand was a London hotel on WordPress and Divi: 2,865 media files, 248 redirects and 57,159 form submissions. It took about 3,150 lines of TypeScript and PHP written for that site alone, and around 60 pairs of screenshots compared by hand to check it.
Every source is different
What you can do depends on the access you get, and it varies by project: the public site only, an admin login, an export file, a database dump, server access, or a mix. Even within WordPress, each route sees something different.
- The REST API without credentials only sees public content
- A WXR export needs no access to the live site, but leaves things out
- A database dump is the fullest copy: custom fields under their real names, private pages, form submissions and redirect rules
Other platforms bring their own shape. Umbraco, for example, stores language variants per field. And the target has quirks too. Moving into Payload, I hit drafts that only updated the version history, empty arrays rejected as null, link URLs with spaces refused, and phone numbers losing their leading zero.
The security side
A migration moves a copy of the client's data around, often including people's names, emails and phone numbers from years of enquiries. That shapes how I work.
- Ask for the least access that does the job. A database dump is often safer than an admin login to a live site
- Keep credentials out of config files and out of anything that gets committed
- Treat the old site's code as untrusted. Porter reads a WordPress dump by running the site's PHP in a container with no network access
- Let clients review their content without handing them, or anyone else, the raw dumps
- Delete the copies when the project is done
Why I built porter
After that hotel site I didn't want to write another 3,000 lines for the next one. I wanted migrations to be repeatable and honest about what they couldn't do. The worst outcome isn't a migration that fails. It's one that gets all the content across and quietly puts it in the wrong place.
So porter is built around a few rules:
- Every run is safe to repeat. Content is keyed by its ID in the old site, so a second run updates rather than duplicates
- Loading is a dry run by default, and the real run is refused if the config changed since the dry run
- Anything it can't place becomes a typed issue in a report. Nothing fails quietly
- It finishes by requesting every old URL and checking it reaches a live page
Run against the same hotel dump, porter extracted and normalised 354 pages, 2,639 media files after de-duplication, 257 redirects and all 57,159 submissions. It also listed what it couldn’t place: 122 missing files, 31 unresolved links and 23 blocks it doesn’t support yet.
If you're starting one
- Ask for a database dump early. It changes what is possible
- Count everything before and after: pages, media, redirects, submissions
- Check every old URL, not a sample