Migrate WordPress to a new host

Though it is easy to start a WordPress website, it’s not so easy to migrate one. You may change hosts or, with I.T. Recipes, we needed to migrate WordPress to a new host from our laptop.

Whatever your reason, you will need to transfer images, posts, pages, categories, databases, menus, themes. Let’s just say there is a lot. It’s a very complicated process to be performed manually. 

WordPress export feature

WordPress has an export feature, so for science we tried it to see what would happen. Transferring images from wp-content via ftp to our new server then used the built-in WordPress export feature to get the below result.

It failed miserably. We suffered downtime, and an already established site will have their SEO affected by a bad migration.

Why migrate WordPress to a new host

  • Security – Being hacked leaves a bitter taste. No matter what happens, you might never get over that feeling.
  • Speed – SEO ranking tests speed, so a slow host = a slow site = low ranking
  • Money – You didn’t get into business to spend your profits on a hosting provider. There might be a cheaper one round the corner offering just as many features.

What are our migration options?

  1. Hire an expensive professional to migrate to your site.
  2. Find a new host that comes with a migration service.
  3. Give it a go yourself by using our below recipe.

Backup Vs Migration

The basics between backup and migration are very similar. They both create a file with all of your settings, posts, plugins, etc. Restoring a backup to a new server doesn’t consider the new IP address, or that your PHP and SQL might be slightly different versions. If you change your IP address, which you will if you change hosting provider. Every image, internal link will not work. It’s like moving house and not telling the bank your new address. Your bank will still send you letters, but to your old address, not new.

For more science, we tested this. We used a free host, so there may be slight differences. After we restored our backup to our new host. We then navigated to the new site, it appeared to have worked, minus a few images. Though when we wanted to access the dashboard on our new host (https://itrecipe.x10.mx/wp/wp-admin/) They immediately took us back to our old host (http://192.168.21.5/wordpress/wp-admin/)

After more testing, every internal link on the site took us back to the old server. Restoring a backup did not work. Our only option is to use a migration tool that takes care of updating URLs, databases, image locations, etc.

We will be using a WordPress plugin called: All-in-One WP Migration

Please follow our WordPress Backup recipe before cooking

Migrate WordPress to a new host

How to migrate WordPress to a new host

Learn how to move our website from one host to another
Computer Time 1 hour 30 minutes
Total Time 1 hour 30 minutes

Equipment

  • 2 WordPress

Ingredients  

  • All-in-one Migration Tool
  • All-in-one Migration Tool

Instructions
 

Old Server

  • From your WordPress Dashboard,
    Plugins > Add new
    Search, install and activate All-in-one Migration Tool
    WP Migration Dashboard Menu
  • Open All-in-one Migration Tool then select Export To > File
    The paid for version allows you to save your file to different cloud platforms
    WP Migration Export File To
  • Make a cup of tea this may take a moment
    Cup Of Tea
  • Once complete we can save the download by pressing Download {Server Name}
    WP Migration Download Migration File

New Server

  • Log into WordPress on your new server
    WordPress Login Screen
  • Make sure everything is up to date
    Update Plugins
  • Open All-in-one Migration Tool then select Import > Import From > File
    WP Migration Import From
  • Select your WPRESS file
    WP Migration Select File
  • Continue drinking tea
    Cup Of Tea
  • Once upload has been completed we will get a quick overwrite warning
    Press Proceed
    As of yet we haven't had any issues with PHP 7 to PHP 8 but we will do a recipe to avoid any issues in the future
    WP Migration Import Warning
  • That’s all folks. Press Finished and check out your newly migrated website
    WP Migration Complete Dialog