A coincidence of timing
I had been planning this migration for a while. Then the WordPress drama happened, the public fallout between Matt Mullenweg and WP Engine, the plugin vulnerabilities in the news, the governance questions. I am not writing this to pile on or to tell you to abandon WordPress. That is your call.
What I will say is: if you have been on the fence about moving to a different platform, now is a reasonable moment to think about it. And if you do decide to make the move to Drupal 11, this is what the experience actually looks like.
Why Drupal 11?
Drupal takes a different philosophy than WordPress. Less "install a plugin for that", more "this is how the platform works, learn it". The learning curve is real. But once you are past it, you are building on something with a strong security track record, a mature content entity system, and proper configuration management.
It also runs fine on standard shared hosting. No VPS required, no managed Drupal platform.
The one thing that trips everyone up
When building a Drupal site, especially with AI assistance, there is a constant temptation to hack around things. CSS overrides, workarounds, fighting the framework instead of working with it.
Do not do this. Plain vanilla Drupal 11.
Use Drupal's template suggestions. Use preprocess hooks. Use the theme system the way it was designed. When something does not look right, the answer is almost never "add a CSS override", it is "use the right template". The moment you start overriding things with !important, you have already lost.
This sounds obvious. It is surprisingly easy to forget, especially when you are in a hurry or an AI assistant starts suggesting shortcuts.
The data quality problem nobody talks about
This is where most migration guides stop being useful. They show you how to export from WordPress and import into Drupal. What they gloss over is the state of the data you are actually exporting.
WordPress content is not clean. Years of posts edited in the classic editor, then in Gutenberg, contain layers of structural noise: block comments, shortcodes, inline styles added by the editor, empty paragraphs, inconsistent heading structures. This is not WordPress's fault specifically, it is what happens to content that is edited by humans over time in any WYSIWYG system. But WordPress accumulates a particular kind of clutter, and it ends up in your export.
Exporting from WordPress is also not the two-click operation people assume. Getting a clean, complete export that maps sensibly to a new content model takes real thought. What are your content types? What fields do you need? What content is worth migrating at all versus rewriting? These are not technical questions, they are content strategy questions that need answers before you touch a single file.
I used AI throughout the cleanup process, and it helped significantly. Parsing patterns in bulk content, identifying inconsistencies, stripping structural artifacts at scale, these are exactly the kinds of repetitive, pattern-matching tasks where AI earns its keep. Where it needed constant steering was in how to handle the Drupal side: left to its own devices, it would suggest CSS workarounds and custom solutions when the right answer was to use what Drupal already provides. The "plain vanilla Drupal" lesson applies to AI assistance too: you need to keep steering it toward the platform's own tools.
The takeaway: budget more time for content cleanup than you think you need. It is the most important part of the migration and the least glamorous.
Which Drupal modules do you actually need?
Keep the module list short. Every module is a dependency. Here is what a solid baseline looks like:
Module | Purpose |
|---|---|
seckit | Security headers: CSP, HSTS, X-Frame-Options, Referrer-Policy |
klaro | GDPR cookie consent, proper opt-in |
google_tag | Google Analytics 4, direct GA4, no GTM needed |
metatag | Meta tags management |
schema_metatag | JSON-LD structured data (Person, Organization, Article) |
pathauto | Automatic clean URL aliases |
token | Token support, required by pathauto, metatag, redirect and others |
simple_sitemap | XML sitemap |
redirect | 301 redirects from old WordPress URLs, critical |
honeypot | Spam protection for forms, no reCAPTCHA needed |
Avoid:
drupal/google_analytics, legacy, replaced by google_tagdrupal/automatic_updates, does not work on standard shared hostingdrupal/webform, overkill for a contact form; use Drupal core Contact module
GDPR done properly on Drupal 11
Most cookie banners are theatre. A pre-ticked checkbox is not consent under Belgian or EU law. Drupal makes it straightforward to do this correctly.
- Klaro as the consent manager, with
default: falsefor every service, opt-in, not opt-out - A single
/privacypage covering both privacy policy and cookie information - google_tag for GA4 direct, avoids the IDE/DoubleClick cookie entirely
- Disable Google Signals and Display Features in GA4 property settings
Security headers on shared hosting: getting to an A grade
An A grade on securityheaders.com is achievable on shared hosting. It requires configuration, not infrastructure.
- Install
seckitbefore going live - Start with Content Security Policy in report-only mode, browser console shows every violation without breaking anything
- Fix the violations, then enforce
The CSP for a standard Drupal 11 site with GA4 and YouTube embeds:
Directive | Value |
|---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
One addition, found the hard way after this was published: 'unsafe-eval' belongs in script-src for as long as you run Klaro 3.x. Klaro calls new Function() for every service callback, and the Drupal module writes empty strings rather than leaving those fields undefined, so the call fires even when you have configured no callbacks at all. Without 'unsafe-eval' the Manager constructor throws and the consent banner does not render. You end up with a stricter policy and no cookie banner, which is the wrong trade in both directions. The symptom is blocked-uri: eval filling your log. Take it back out once upstream checks for empty values instead of only undefined ones.
Ditch Google Fonts before you write any CSS
Google Fonts are convenient. They are also a GDPR issue and a Content Security Policy complication. Self-hosting fonts takes an afternoon and solves both problems permanently.
Download from fontsource.org, latin + latin-ext subsets only, woff2 format. Write @font-face declarations with unicode-range. Register in your theme's libraries.yml with weight: -1. Remove all Google Fonts references. Done.
One step further: preload your two or three above-the-fold fonts in your theme's html.html.twig. Without it, fonts wait behind the CSS parse chain, typically 800ms of avoidable delay. Latin subset files only, one entry per font weight used above the fold. The crossorigin attribute is mandatory even for same-origin fonts.
Composer updates on shared hosting: the real story
Every guide on this topic says the same thing: composer update fails on shared hosting. That is true, but it is not the full picture. The actual problem is not shared hosting itself. It is the Composer binary that hosting providers ship, which is typically years old and cannot resolve Drupal's dependency tree.
The fix is simple, and it means core updates run directly on the server, no local development environment required.
One-time setup: download a fresh Composer into your project root
Connect via SSH, navigate to your project root (one level above public_html/), and run:
curl -L -o composer.phar https://getcomposer.org/download/latest-stable/composer.phar
chmod +x composer.phar
php composer.phar --versionYou should see Composer 2.9.x or newer. Add composer.phar to your .gitignore, it is a binary, not something to commit. Always invoke it as php composer.phar rather than the system composer command.
Updating contrib modules
php composer.phar require 'drupal/klaro:^3.0'
drush updb -y && drush crUpdating Drupal core
php -d memory_limit=4096M -d max_execution_time=0 composer.phar require \
"drupal/core-recommended:^11.4" \
"drupal/core-composer-scaffold:^11.4" \
"drupal/core-project-message:^11.4" \
"drupal/core-recipe-unpack:^11.4" \
--update-with-all-dependencies
drush updb -y && drush crThe caret accepts every later 11.x, so this installs the newest Drupal 11 release available when you run it: the digit only needs touching when Drupal 12 arrives. Always take a full backup before a core update. Check what needs updating with php composer.phar outdated --direct or /admin/reports/updates in the Drupal admin.
SiteGround-specific: packagist may be disabled
On some SiteGround accounts, the global Composer configuration disables packagist.org. This makes certain packages, including Drupal core meta-packages, invisible to Composer, producing confusing "not found in remote repositories" errors even when the packages clearly exist.
If you hit this, fix it once per project:
php composer.phar config repositories.packagist composer https://repo.packagist.orgThis overrides the global setting for that project only and persists in composer.json. Commit the change.
To diagnose: check /home/customer/.config/composer/config.json on the server. If it contains "packagist": false, you need the fix above.
Mobile and image optimisation
- Responsive Image module (Drupal core), enable it and define image styles per breakpoint from the start
- WebP. Drupal 11 core supports it natively, no contrib needed
loading="lazy"on all non-hero images;fetchpriority="high"on hero images- Compress originals before upload. Drupal resizes but does not compress originals
- Mobile-first CSS, define breakpoints in
THEME.breakpoints.ymlearly
Full reference checklist
Everything above in condensed form.
Project setup: drupal/recommended-project template, webroot public_html/, scaffold file-mapping for .htaccess, robots.txt, .well-known/*, .gitignore excludes vendor/, core, contrib, sites/default/files/
Must-have modules: seckit, klaro, google_tag, metatag, schema_metatag, pathauto, token, simple_sitemap, redirect, honeypot
Avoid: google_analytics (legacy), automatic_updates (shared hosting incompatible), webform (use core Contact)
Composer: download composer.phar (Composer 2.9+) into project root, invoke as php composer.phar, use php composer.phar outdated --direct to check for updates, if on SiteGround and hitting "not found" errors, re-enable packagist per-project, always run drush updb -y && drush cr after any update
GDPR: Klaro default: false, single /privacy page, google_tag direct GA4, no pre-ticked boxes
Security: CSP report-only first, then enforce. A grade target on securityheaders.com. HSTS 1 year minimum, add https://www.google.com to connect-src or GA4 silently drops hits, and keep 'unsafe-eval' in script-src while Klaro 3.x is in play or the consent banner will not render at all
Fonts: remove Google Fonts before writing any CSS, self-host from fontsource.org
Mobile & images: Responsive Image module + image styles per breakpoint. WebP (core), lazy load non-hero, fetchpriority="high" on hero, compress before upload
Content migration: 301 redirects before go-live, strip WordPress block comments and shortcodes, fix image paths, budget significant time for content cleanup
Frequently asked questions
Is Drupal 11 suitable for non-developers?
For day-to-day content management, yes, the admin UI is clean and intuitive. Initial setup and theming require development skills. Once it is running, a non-developer manages it comfortably.
Does Drupal 11 work on shared hosting?
Yes. Both my sites run on standard shared hosting. The main caveat used to be Composer, the system binary on most hosts is too old to resolve Drupal's dependency tree. The fix is to download a fresh composer.phar directly into your project root. After that, even core updates run on the server without a local development environment.
How long does a WordPress to Drupal migration take?
A simple site with a few content types and under 100 pages took me several weeks of evenings and weekends. Most of that time was content cleanup and redirect mapping, not Drupal configuration.
Is the WordPress export really that messy?
Yes. Expect to spend real time on it. The structural noise that accumulates in WordPress content needs to be cleaned before it goes into your new content model. This is where AI assistance is genuinely useful: pattern matching and bulk cleanup at scale.
Is Drupal more secure than WordPress?
The attack surface is smaller, no large third-party plugin ecosystem. Drupal core has a mature security team. Security still requires configuration: keep modules updated, use security headers, be selective about what you install.
Do I need a separate cookie policy page?
No. One well-written /privacy page covering both privacy policy and cookie use is cleaner and more honest than two separate pages.
The full reference checklist is available as a Markdown file: Download here
Questions or feedback? Use the contact form.
This was the move. Part 2 is the cleanup nobody warns you about, what I found when I looked closer.