Topics

On this page

Last updated on Nov 5, 2024

Migrating from Drupal to WordPress: A Step-by-Step Guide

Follow these essential steps to smoothly transition from Drupal to WordPress. Each step prepares you for a seamless migration, helping you tackle challenges and ensure efficiency

WordPress installation

After fully preparing your content and Drupal site for migration, the next step is to transition to the WordPress platform. Begin by downloading and installing WordPress, a process that is quite simple. For guidance, you can consult the official documentation.

WordPress installing
WordPress installing

After migrating to WordPress, your content URLs may lose their previous structure from Drupal, reverting to the standard WordPress format. To create user-friendly URLs, you need to adjust the permalink settings in WordPress.

To modify the permalink structure, navigate to Settings > Permalinks in your WordPress dashboard. We recommend choosing the “Post name” option.

This “Post name” format allows you to create custom permalinks for each page and post. While you have the option to set up a different URL structure, the “Post name” choice is typically suitable for most websites, as it utilizes the title of your post for the URL.


permalink-structure-on-WordPress
Permalink settings in WordPress

Migrating content from Drupal to WordPress

With your WordPress environment fully set up, it’s time to begin the actual Drupal to WordPress data migration process. Let’s bridge the gap between Drupal and WordPress through the use of plugins.

1. Install the FG Drupal to WordPress Plugin

The first step in your migration process is to install the FG Drupal to WordPress plugin on your new WordPress site. This plugin serves as a bridge, facilitating the seamless transfer of your content—including articles, images, videos, and more. It is compatible with all versions of Drupal and supports multisite configurations too, This Drupal to WordPress migration tool ensures a really smooth transfer process.

The free version of the FG Drupal to WordPress plugin is an excellent starting point, but it has some limitations. It may not support the migration of custom content types unique to your Drupal site, user accounts and their associated data, or advanced SEO features like URL redirects. To access these features, you will need to upgrade to the paid version of the plugin.

permalink-structure-on-WordPress
FG Drupal to WordPress plugin
FG Drupal to WordPress import settings
FG Drupal to WordPress import settings

2. Clean up the existing content

Before you start, remove any unwanted or duplicate content from your WordPress site, especially if you have already migrated some content (In case if you have attempted migration before). This ensures a smoother migration process. The plugin may provide options to automatically delete existing content that matches what you’re importing from Drupal.

Empty WordPress content
Option for removing the existing the WordPress content before the migration

3. Enter your Drupal website URL

Drupal Website parameters
Enter details of the Drupal site

4. Choose a media download method

5. Connect your Drupal website to the migration plugin

Step 1: Locate your Drupal website’s URL

Go to your Drupal website and copy its URL from the address bar.

Step 2: Enter your Drupal credentials

Access your website’s files: Use an FTP client or file manager to connect to your web server.

Navigate to the Drupal folder: Locate the folder where your Drupal website is installed. It’s often named something like “public_html/your_drupal_folder”.

Find the settings.php file: Inside the “sites” folder, go to the “default” folder and find the “settings.php” file.

Drupal site parameters
Drupal site credentials

Step 3: Provide database information

Copy and paste credentials: In the migration plugin, enter the following information from the “settings.php” file:

Drupal database parameters
Drupal site database information

Step 4: Test the database connection

Verify settings: Click the “Test the Database Connection” button in the plugin.

Check for success: If the connection is successful, you’ll see a positive message.

Remember:

Include the underscore: When entering the table prefix, make sure to include the underscore at the end.

Drupal-site-credentials-Test-database-connections
Drupal database parameters

Step 5. Customizing your migration with the “Behavior” section

Behavior section in WordPress
Migrating from Drupal to WordPress with plugin – Behavior section

When the migration is complete, you’ll receive a notification.

Database connection successful
Content import – completed

After the main migration, there’s one last thing to do. If your old Drupal website had a lot of links pointing to other pages on the same website, those links might be broken now.

Click the “Modify Internal Links” button on your WordPress site to automatically detect and fix any broken internal links from the migration. This tool is especially useful if you’ve changed your permalink structure or added redirects.

Modify internal links after the Drupal migration
Modify internal links after the migration

Content migration in Drupal to WordPress

Below you’ve a side-by-side comparison highlighting the content on both the original Drupal site and the newly migrated WordPress site. This example highlights the successful migration process. Some minor differences may appear, as content is displayed according to the active WordPress theme after the migration, which is a normal outcome.

Drupal to WordPress migration - shown by the post
Drupal to WordPress migration

Updating your website’s address

After validating your content transfer, the final step is to update your website’s address (DNS) so that visitors are directed to the new WordPress site instead of the old Drupal one.

Here’s a quick guide:

  1. Log in to your domain registrar’s account. 
  2. Find the DNS settings.
  3. Modify the DNS records. Update them to point to your new WordPress website’s IP address.

Most domain registrars offer detailed instructions and support. By updating your DNS settings, you’ll ensure a smooth transition for your visitors.

Creating a new sitemap for your WordPress site

While moving from Drupal to WordPress, it’s important to create a new sitemap for your WordPress site. A sitemap is like a map that helps search engines understand your website’s structure and content.

Here’s why creating a new sitemap is beneficial:

By creating a new WordPress sitemap, you ensure that search engines recognize you have moved from Drupal to WordPress.

If you are considering migrating to WordPress and looking for Drupal to WordPress migration services, feel free to reach out to us.


Contributor

Sourabh Kulkarni

Sourabh

Sourabh Kulkarni

Technical content writer