
CMS Migration
Pre-Migration Assessment: Metrics and KPIs for WordPress to Drupal Decisions
Data-driven framework for evaluating WordPress to Drupal migration. Measure baseline performance, technical limits and costs before committing budget.
Overcome WordPress to Drupal migration challenges with our expert guide. Learn data transfer techniques and preserve custom functionality.

Not all migrations begin with a problem – sometimes, they start with potential. WordPress has likely served you well. After all, it's intuitive, flexible and a fantastic foundation for millions of sites.
But maybe you’re managing a growing library of structured content. Maybe your teams need more granular permissions, or you're expanding into new regions and languages. Perhaps you’re pushing into custom workflows or enterprise-grade security. These aren’t signs that WordPress has failed – they’re signs that your organization is evolving. And Drupal is built for exactly that kind of complexity.
That’s not to say Drupal is necessarily better than WordPress in every scenario. Ultimately, the decision which CMS is better depends on your needs and vision.
So if your organization has intricate, collaborative and mission-critical needs that require you to migrate from WordPress to Drupal, we’ve got you covered! In this post, we’ll walk you through the migration process step-by-step and give you practical ways to avoid common pitfalls. We’ll even cover strategies for maintaining performance, SEO and content integrity.
The most common strategic reasons teams migrate from WordPress to Drupal include:
Here’s a top-level blueprint for migrating from WordPress to Drupal 11.
With your prep work done, it’s time to export your content carefully and cleanly from WordPress.
In your WordPress admin dashboard, head to Tools > Export. Choose All Content to generate a complete XML file. This export will include your posts, pages, media references, categories, tags, custom post types and more.
The images and media themselves are not embedded in the XML; the XML contains their URLs or attachment post references. WordPress attachments (media library items) are included as special entries that the Drupal import can process.
Pro tip: If you have a large site or lots of media, consider breaking your export into smaller chunks (e.g., by year, by post type) to avoid timeout issues during import. Alternatively, use WP-CLI (wp export), which can handle large exports more gracefully and offers options to include or exclude certain content.
Ensure the WXR file is well-formed XML before attempting to import it into Drupal. Even a small formatting error can derail an automated import. Use a tool like the command-line xmllint to check the file’s syntax. For example, run:
xmllint yourwordpressexport.xml
If issues are reported (e.g., illegal characters), fix them (sometimes editing out control characters or re-saving the file can help) before proceeding.
Start fresh with a clean installation of Drupal 11. The recommended method is to use Composer, which handles dependencies and keeps your project neatly organized. Run the following command:
composer create-project drupal/recommended-project my_site_name_dir
This will create a new Drupal project with best practices baked in. Once installed, complete the setup via the browser-based installation wizard. Choose your language, database and configure your site basics.
Bonus: If your hosting provider offers one-click Drupal installations, you can use that option, but double-check that you’re getting the latest version and a Composer-ready setup.
If you’re on Pantheon, you can create a new Drupal 11 site quickly either through the Pantheon Dashboard or via Terminus (Pantheon’s command-line interface).
To import your WordPress content into Drupal, you’ll need a suite of modules that support migration:
You can install these through the Extend page in the Drupal admin or all at once with Drush:
drush en migrate wordpress_migrate migrate_plus migrate_tools
Be careful! You should always verify the current status of WordPress migration tools and consider that manual migration processes may be more reliable.
Also, install the Pathauto module to automatically generate clean, SEO-friendly URLs. It works in conjunction with the Token module to create URL patterns based on content properties like titles and categories.
composer require drupal/pathauto
drush en pathauto
Once everything is enabled, you're ready to begin the actual migration.
Using the migration wizard interface
The wizard provides a step-by-step interface where you can:
Command-line migration with Drush
For more control and better suited for larger migrations, use Drush commands to manage the migration process:
# Check migration status
drush migrate:status
# Import specific migration
drush migrate:import [migration_id]
# Import all migrations in a group
drush migrate:import --group=[group-name]
# Rollback a migration if needed
drush migrate:rollback [migration_id]
# Reset migration status if stuck
drush migrate:reset-status [migration_id]
Migration order and best practices
It's best to execute migrations in the following logical order to maintain data integrity:
Also, monitor the migration logs carefully during import to identify and resolve any mapping or format errors as they occur. Drupal's migration system provides detailed feedback about successful imports and any issues encountered.
At this stage, if all went well, your Drupal site has the content from WordPress. But we’re not done – the next steps involve adapting the design and functionality and then thoroughly testing and optimizing the new site.
Unlike content, WordPress themes cannot be directly ported to Drupal due to fundamental architectural differences. Drupal 11 uses Twig templating engine and a different theming structure.
You’ll need to go with one of the following options:
As for WordPress plugins, similar features can be handled by Drupal’s core and contributed modules. Here’s how common needs translate:
Drupal gives you deeper control. It just takes a bit of discovery and planning.
To maintain your SEO rankings and avoid broken links, implement 301 redirects from your old WordPress URLs to your new Drupal paths. Use the Redirect module in combination with Pathauto to:
Don’t forget to update your sitemap and submit the new one via Google Search Console.
Now’s the time to stress test your site across every dimension:
Involve your content creators and admins in this process – they’ll spot things developers might miss.
Last but not least, confirm that all media files (images, documents, embedded videos, etc.) are present, functioning and correctly linked. The Media module helps organize and manage these files more efficiently than WordPress in many cases.
Check broken image links, missing alt text (for accessibility) and downloadable documents and file paths. Fix anything that didn’t transfer smoothly and consider optimizing your media library as part of the cleanup.
And now it’s time to launch your Drupal site! This usually involves switching DNS to point to the Drupal server or moving Drupal into the production environment (depending on your deployment method).
To be safe, do another round of tests on the live site (sometimes differences in environment can cause issues, like file permissions or missing PHP extensions on production).
Also, keep an eye on site performance under real user load. Ensure caches are warming and there are no errors (watch the Drupal logs). If you encounter high load, consider enabling additional caching or tuning the server.
In the days after launch, use Search Console to monitor crawling. Your 301 redirects should signal to Google to replace the indexed URLs with the new ones. You might see a temporary dip in traffic until Google fully processes the changes, but a well-executed migration (with 301s for all pages) should maintain your rankings.
Even with a solid plan, migrations have their moments. Here’s a breakdown of common WordPress to Drupal migration hurdles, plus practical ways to solve them.
Moving the user base from WordPress to Drupal can be tricky due to differences in how the two systems handle users, roles and permissions:
During migration, each WordPress user account needs to become a Drupal user, ideally with the appropriate role and access. The challenges include mapping the WordPress roles to Drupal roles (they won’t line up one-to-one) and preserving user passwords or forcing resets since the encryption differs. In practice, many migrations require significant adjustments to user roles and permissions to ensure everyone has the right access after launch.
Additionally, any user profile data or user-generated content (like comments or forums) associated with those accounts must be migrated and linked properly.
Here are a couple of strategies to overcome this obstacle:
Taking the time to get it right will ensure a smooth transition for site administrators and users alike.
WordPress stores media in an uploads directory and allows embedding them in posts via shortcodes or the block editor. Many WordPress sites, especially older ones, use shortcodes like [gallery] or [video] (and various plugin-specific shortcodes) to embed media or special content within pages. These shortcodes will not be understood by Drupal and will appear as raw text or broken content if not converted.
Additionally, image paths in content could still point to the old WordPress file location, causing broken images after cutover if those paths aren’t updated.
Drupal 8+ (including Drupal 11) introduced a Media system in core, which treats media items as first-class entities, a different approach from WordPress’s simpler media library. The challenge is migrating all the media files over and ensuring they remain correctly embedded in the Drupal content.
To do this:
It’s crucial to maintain URL consistency and meta information – if not, you might end up with broken links, “404 Not Found” errors and loss of search visibility. SEO considerations also include generating a new sitemap, handling any changes in site hierarchy and ensuring the new site is indexed properly after launch.
Aside from URL mapping and redirecting, don’t neglect meta titles, descriptions and other SEO-critical content. If the WordPress site used an SEO plugin, try to extract that data (sometimes the WordPress export might include it as post meta).
In Drupal, install the Metatag module which allows you to set global and per-content meta tags. You can then import or manually copy titles, meta descriptions and keywords from WordPress into Drupal’s metatag fields for each page.
Also, preserve taxonomy and linking structure. WordPress category and tag pages often rank in search results. When you migrate, replicate important taxonomy term pages in Drupal and keep their URLs similar.
For example, if WordPress had a category “News” at /category/news, you can create a Drupal taxonomy term “News” and use Pathauto to give it a URL like /category/news as well. Also, review internal links within content: if WordPress posts linked to each other or to category pages, those links should be updated to Drupal paths (the migration process might do this if Start usi Pantheon todayURLs are the same; if not, consider a search-and-replace in the database or using the Linkit/Editor tools to fix them).
Migrating from WordPress to Drupal is a chance to level up your digital presence. And while the process can be complex, it doesn’t have to be chaotic. With the right tools and infrastructure, you can transform a challenging migration into a streamlined, performance-focused upgrade.
That’s exactly what Pantheon offers.
Pantheon is a WebOps platform built to support serious Drupal projects at every stage – from development to deployment to ongoing optimization. You’ll get high-performance hosting, built-in version control and isolated Dev, Test, Live environments. Add in automated backups, advanced caching and a powerful command-line interface, and you've got a platform that helps your team move faster without sacrificing control or quality.
See how Pantheon can transform your workflow today and experience blazing-fast performance and bulletproof workflows for your Drupal website!

CMS Migration
Data-driven framework for evaluating WordPress to Drupal migration. Measure baseline performance, technical limits and costs before committing budget.

WordPress
Explore the reasons behind the Drupal 7 to WordPress shift.

CMS Migration
Ready to switch from Drupal to WordPress? Learn how Pantheon simplifies the migration process, addresses common pitfalls and helps you scale your site.