How do you find your next page

Couple your WordPress site to a different domain

In this guide we show you how to move an existing WordPress site to a different domain name.

Step 1 - Make sure your current page is intact
Step 2 - Download the website files
Step 3 - Export your database
Step 4 - Upload the files to your new domain
Step 5 - Import your database
Step 6 - Go to wp_options
Step 7 - Update siteurl and home
Step 8 - Update the connection details in the wp-config
Step 9 - Check the page on your new domain
Step 10 - Repair Permalinks (Optional)
Step 11 - Repair Broken Images (Optional)
Step 12 - Check Your Page Again (Optional)
Tip: Too complicated? Then use our 1-click migration tool.
It's included in all WordPress hosting plans.

Step 1 - Make sure your current page is intact

Open your current WordPress site and make sure everything is intact.


Step 2 - Download the website files

First you need to create a backup of your website, both of the webspace files and of your database.

Download the files from your website to your computer. Save a copy of the files in a separate folder on your computer and keep it as a backup.

If you need help with this, feel free to check out one of our other guides:


Step 3 - Export your database

Export your database with phpMyAdmin. Save a copy of the exported sql file in a separate folder on your computer and keep it as a backup.

If you need help, check out our guide on how to back up your database.


Step 4 - Upload the files to your new domain

Log in via FTP and upload your backup to the web space of your new domain. If you created the backup with the File Manager, don't forget to unzip the file before uploading it.


Step 5 - Import your database

Import the backup of your database into phpMyAdmin. Check out our guide Importing a Database if you need help.


Step 6 - Go to wp_options

When the database has been imported, find the wp_options table in the left menu.


Step 7 - Update siteurl and home

Next, you need to change the location of your page in the database.

  1. See wp_options siteurl and home. Usually these two entries are at the top of the table, in rows 1 and 2.
  2. For siteurl click the field below option_value and replace the old domain with your new domain name.
  3. Hit Enter to save.
  4. Make the same settings for home in front.


Step 8 - Update the connection details in the wp-config

The access data of your old domain must now be exchanged with those of the new domain in WordPress.
We have created a guide in case you need help updating the connection details.


Step 9 - Check the page on your new domain

Take your old page offline and make sure it doesn't interfere with the new page. You can prevent this by moving the files to another folder.

Open the new domain in your browser and look at the page. If everything works as expected, you are now done. Often, however, some manual repairs are still necessary.


Step 10 - Repair Permalinks (Optional)

If you get a 404 error trying to open links on your page, those are Permalinks faulty. Fortunately, these can be easily repaired.

  1. To do this, log into your WordPress dashboard.
  2. click on Settings and then on Permalinks.
  3. Scroll down and click save Changes.


Step 11 - Repair Broken Images (Optional)

If images are not displaying correctly, it means that links are still pointing to the old domain. You can fix this by reinserting the appropriate images.

If you have a website with lots of images, you can use the Better Search Replace plugin. It automatically replaces your old domain with the new domain in your database.

Please note: Plugins are third-party products for which we cannot offer support. Please contact the manufacturer of the plugin if you have problems with it. We recommend that you back up your website files and database before making any changes.
  1. Log into your WordPress dashboard.
  2. click on Plugins and then on Add.
  3. Are you looking for Better Search Replace and install the plugin with this name.
  4. click on Activateto activate the plugin.
  5. click on Tools and Better Search Replace.
  6. click on Search forto search for the old domain name and click Replace withto refund it with the new domain name.
  7. Select the tables you want to search. Your posts are stored in the wp-post table, but you can usually select all of the tables.
  8. Make sure that the checkmark for Run as dry is not set and click Run Search / Replace. If you would like to do a test run before you save the changes, check the box next to Run Search / Replace.


Step 12 - Check Your Page Again (Optional)

In most cases your page has moved successfully, with all images and links. If you continue to run into issues, we can recommend searching the WordPress codex for more help.


Related articles:

Change your WordPress theme in the database
Disable WordPress plugins in phpMyAdmin