Migrate D11 to another domain

By peterkaye , 10 October 2025

To restore a Drupal 11 site to a new domain, you must back up your existing site files and database, set up the new hosting environment with the new domain, transfer the backed-up files and import the database into the new host's database, and then update your Drupal site's settings to reflect the new domain and ensure everything functions correctly. 

1. Backup Your Existing Drupal Site 

  • Files: Create a full backup of all your Drupal site files and folders.
  • Database: Export your entire database. You can use the Backup and Migrate module for this, or the command line with mysqldump, according to Liquid Web

2. Set Up the New Host 

  • Create a New Database:
  • Set Up the Domain: 

On your new hosting account, create a new, empty database for your Drupal site. 

Ensure the new domain is pointed to your new hosting account and is set up to receive your Drupal files. 

3. Transfer and Import 

  • Transfer Files: 

Upload the Drupal site files from your backup to the new server's document root (e.g., public_html folder). 

  •  Import Database: 

Import your database backup into the new database you created. You can use phpMyAdmin, the command line (mysql), or Drush, notes Liquid Web. 

4. Update Drupal Settings 

  • Update settings.php:
  • Update Drupal Configuration:
  • Check File Paths: 

In your new Drupal site's settings.php file, update the database connection details to match the new database you created. 

Log in to your new Drupal site and navigate to the site's configuration to verify the domain settings are correct. 

Ensure that any file paths within your Drupal settings are updated correctly for the new domain

Tags

Comments