Part 2 of moving off WordPress. Part 1 was the decision and the overview. This one is the cleanup nobody warns you about, and the moment I realised the migration wasn't as "done" as I thought.
A while back I wrote about moving my sites from WordPress to Drupal 11. The site went live. The redirects fired, the pages loaded, the contact form worked. I told myself the migration had gone well.
Then I looked closer.
Going live turns out to be the easy part. The real work is everything that doesn't fit in a "how to migrate" tutorial: fifteen years of content that's quietly broken, holiday photos that leak more than you'd like, a decade of URLs you can't afford to break, and a site that feels fast right up until you actually measure it. This post is that part.
Your old content is dirtier than you think
Migration guides stop at "export from WordPress, import into Drupal." What they skip is the state of the content you're actually moving. Fifteen years of posts, edited in three different editors, leave a mess.
A few things I found once I went looking:
- 26 absolute links to my own site, spread across 15 posts,
https://frederikvanhecke.com/...hardcoded into the body. They worked in production (same domain), so I never noticed. But locally they sent me to the live site, and crawlers counted them as external links. Collapsed them all to relative paths. - 68 broken inline-image references across 23 posts, images that had moved, been renamed, or simply didn't survive the export cleanly.
- A handful of bodies saved as
full_htmlthat had no business being anything butbasic_html. - And a pile of orphan files sitting in the file system, referenced by exactly nothing.
None of this is dramatic on its own. Together it's the difference between "it imported" and "it's clean."
The privacy landmine in your photos
This one I didn't expect. Old photos carry EXIF metadata, camera, settings, and, for a fair number of my travel and home shots, GPS coordinates. Publish them as-is and you're quietly handing out locations with every image.
So every image went through the same pipeline before it went live: auto-orient (apply the rotation), resize to a sane maximum, convert to sRGB, strip all metadata, re-encode. That last step kills the GPS data. As a bonus, the total image weight dropped from 40.7 MB to 14.1 MB, about 65% smaller, with no visible loss in quality.
If you take one thing from this post: strip EXIF before you publish. It's a privacy fix first, a performance fix second.
A decade of URLs, and not breaking a single one
Fifteen years of a site means fifteen years of URL schemes. Mine had been English, then Dutch, then a cleaner Dutch, with a /nl/ language prefix layered on top at some point and later dropped. That left roughly 503 redirects to carry across so that old links, bookmarks, and search results don't 404.
Two rules made it manageable:
- Flatten the chains. A redirect that points to another redirect that points to the real page is three hops where there should be one. I collapsed every
A → B → Cdown toA → final. - Manage redirects in Drupal, not in
.htaccess. The Redirect module keeps them in one place, visible and editable, instead of buried in a config file you're afraid to touch.
Not glamorous. But it's the difference between keeping the traffic you've earned and quietly throwing it away.
"Fast enough", until I measured it
Here's the part where the "it went well" story fell apart.
I assumed the site was fast. It felt fast. Then I ran PageSpeed Insights on an article page, on mobile, and got 76, with a Largest Contentful Paint of 5.8 seconds. On mobile, that's not great.
So I went looking, and this is where it got interesting. The largest element on the page was the hero image, but it loaded in 20 milliseconds. The image wasn't the problem. The problem was render delay: about 1.1 seconds where the browser had everything it needed but still wasn't painting.
The culprit: fonts. My article titles use a serif (Lora); the body uses a sans (Inter). I had preloaded the Inter weights, but not Lora. So on every article the browser fetched the CSS, discovered it needed Lora, then went to get it, and held up the paint until it arrived. The homepage was fine precisely because it only uses Inter, which was already preloaded. The articles were the ones paying for it.
The fix was one block: preload the Lora weights, but only on article pages (no point loading a serif the homepage never shows). Result, same article, same mobile test:
Before | After | |
|---|---|---|
Performance | 76 | 92 |
Largest Contentful Paint | 5.8 s | 3.2 s |
Desktop went from 97 to 99. And because it's a template-level change, not a per-post patch, it fixed every article at once, all ~34 of them. That's the difference from WordPress in one line: you fix it once, in the right place, instead of editing posts one by one.
Two lessons worth more than the fix itself:
- Run the test two or three times. Mobile scores swing, my very first run after a cache clear read 66, purely because the cache was cold. One bad number can send you chasing the wrong thing.
- The first diagnosis was wrong. I'd assumed the image was lazy-loading and "fixed" that. It changed nothing, because the image was never the bottleneck. Measure after every change. Don't trust the guess, not even your own.
And the honest limit of shared hosting: you fix what's yours and accept the rest. Some of the render-blocking JavaScript comes from core/contrib (jQuery), you don't hack core files to win a synthetic benchmark. A 92 on mobile, on a budget plan, is a win I'll take.
Build the clean version first, then drag the live site to it
The method behind all of this: I didn't poke at the live site hoping to improve it. I built a clean, from-scratch "north star" version, plain, vanilla Drupal 11, no shortcuts, and then pulled the live site toward that standard, piece by piece, checking against production at every step.
Plain vanilla matters more than it sounds. Every clever override is something future-you has to remember and re-justify. The boring, standard way is the one that still makes sense in two years.
And yes, I used AI assistants throughout, for the data-quality grind, the redirect untangling, the performance detective work. They're genuinely useful. They're also confidently wrong sometimes (see the lazy-image dead-end above). The trick is that you hold the standard and check the work. The tool drafts; you decide.
Was it worth it?
I thought the migration was finished the day it went live. It wasn't, and looking closer cost me a few evenings I hadn't planned on. But the site is genuinely better for the second look: cleaner content, no leaking GPS, no broken links, and articles that actually load fast on a phone.
"Done" is just a status update. "Good" is what's under the hood.
A full PageSpeed-on-shared-hosting reference checklist is available to download here.