The Definitive Guide To Migrating A WordPress Site
/ / How to Migrate Your WordPress Site (Step by Step Guide)

How to Migrate Your WordPress Site (Step by Step Guide)

Some of the links in this post are affiliate links. This means if you click on the link and purchase the item, We will receive an affiliate commission at no extra cost to you. All opinions remain our own.

Changed hosts and trying to migrate a WordPress site?

Look no additional.

In this information we’ll cowl the right way to do it with a plugin, manually and we even cowl a few hosts that do it for you for free, or have their very own methods to make WP migration straightforward.

(Migrating To A Live Site?) Back It Up

If the site you are migrating to is a stay site, for instance you probably have been updating and altering the site on a staged or native growth model of your site, it’s best follow to again up your stay site earlier than you attempt import the copy.

If you don’t know the right way to again up your site, you possibly can for instance do some of the steps beneath utilizing one of the plugins on your stay site, or you possibly can merely comply with together with the handbook migration half of the information till you have got your site information and sql database file downloaded.

You may read extra about backing up your site right here, in the event you want additional steerage.

If your website is an necessary half of your business, and downtime can have severe financial penalties, you need to at all times do no less than a handbook cPanel and sql backup, on prime of a plugin backup utilizing a plugin like Updraft Plus (aff) or Backup Buddy, earlier than you try any massive modifications like for instance, importing a new model of your site.

You might even wish to look into a service like JetPack Backups.

Migrate WordPress Sites Using A Duplicator/Migration Plugin

When migrating a WordPress Site, the 2 major methods to do it are to make use of a plugin, or to do it manually. Let’s start off with the straightforward half, the right way to do it with a plugin.

On WPKube, we’ve already coated the right way to transfer a site with the duplicator plugin, so in this information we’ll take a have a look at the opposite main free migration plugin, All-in-One WP Migration.

(Updraft Plus  is one other standout free backup/migration plugin, however the migration/duplication performance is locked behind an add-on, which is why we didn’t focus this specific information on that plugin.)

So clearly, step one is to move over to Add New Plugins, search for: ‘All-in-One WP Migration’, and set up the plugin, then activate it.

Note: Install the plugin each on the site that you simply wish to migrate from, and the host you wish to migrate to.

This means it's essential set up WordPress on the brand new webhost in the event you haven’t already. You can do that even in the event you haven’t switched nameservers but for many hosts. Just log into the no matter dashboard they've, normally cPanel, head over to Softaculous, and set up WordPress.

(If you don’t know the right way to get to the management panel, you possibly can normally simply log into your hosting account, choose the service that you've, after which click on via to the “dashboard” or “control panel”.)

Now that you've the plugin put in on each websites, on the website that you simply wish to export, head over to All-in-One WP Migration in the WP Dashboard, and choose export.

Export Your Site - All in One WP Migration Plugin

After the file is full, obtain it.

After you’ve downloaded the file (the filename ought to be one thing like, head over to your WordPress set up on your new host.

Login to the admin, head over to All-in-One WP Migration > Import. Then merely import the file.

Import Your Site - All in One WP Migration Plugin

Be conscious that there is a measurement restrict of 512 MB for the free model of the plugin, and that there is an elevated threat of errors for actually massive websites, even in the event you do get the premium model so you are able to do limitless measurement, so you probably have a very giant site, you will in all probability wish to migrate your site manually.

If you’re altering hosts, and also you import your site utilizing a plugin earlier than you’ve modified nameservers, you will have some damaged hyperlinks after the nameservers change, so alternatively, you possibly can start with the subsequent step first, though you will face some downtime, or you possibly can easy re-import the site after the area modifications goes stay in the event you’re going through any points.

(If You’re Changing Hosts) Change The Nameservers For Your Domain

If you’re altering your host, you will want to alter the nameservers on your DNS supplier(the corporate you pay on your area title). If your DNS supplier is Namecheap, for instance, login to the member space. Then go to the area checklist.

Namecheap Domains

Now click on the manage button subsequent to the suitable area title, then scroll down till you see the nameservers part. Now you possibly can change the title servers to the suitable ones on your new host. When you’re accomplished, click on the examine mark to avoid wasting your modifications, and also you’re accomplished.

Change Your Nameservers Namecheap

(If you don’t know the precise nameservers on your new host, you possibly can normally discover them in your welcome email after you enroll. If not, you possibly can attempt Googling: ‘hosting-company name servers’, and if that fails, ship a message to buyer support and they need to reply with them shortly.)

Note: DNS modifications can take as much as 48 hours, so it’s beneficial that you simply maintain the site stay on your previous host till you’ve confirmed that the area results in the brand new host. If you don’t do that, your website may see prolonged downtime throughout this era, because the area will normally nonetheless level to your previous host for no less than a few hours after the change.

Migrate WordPress Sites Manually

If you have got a very massive site, otherwise you’re a perfectionist that merely likes doing all issues by your self, so every thing is below your management, a handbook migration can be the best alternative.

Step 1: Download Your Files

First start up by backing up your information. You can do that by utilizing an FTP shopper like FileZilla and saving the suitable folder, or you are able to do it via a cPanel backup. (If you put in WordPress in your root area, like most individuals, you need to obtain your public_html folder onto your laptop.)

If your FTP connection is exceptionally sluggish for no matter reason, you may as well attempt merely archiving (zipping) after which downloading the identical folder in the cPanel (or different dashboard’s) file supervisor. Sometimes this may be a lot quicker for shared hosts which have very restricted ftp connections.

Step 2: Export The MySQL Database

You can do that simply from phpMyAdmin. Go into your hosting dashboard, and head over to phpMyAdmin.

Once you’re there, choose the right database.


(If you have got multiple WordPress site on your host, you will discover the suitable database by trying on the wp-config.php file of the site you’re migrating. Inside it you possibly can simply discover the right database by looking for DB_NAME.)

Finding Database Name For Migrating WordPress Site

Once you’ve chosen the database, head over to export, and choose go. Download the sql file.

Export WP Database


Step 3: Create a New Database for Your New Host And Import The Old Database

Head over to the “MySQL Databases” part of the cPanel of your new host. Here you merely create a new database with the identical title as your previous one.

Depending on your host, there may be a mandatory prefix to your databases. This implies that even in the event you simply write in the identical title on your database, the true title finally ends up being:


In this case, it's essential change the title of sql file to: mandatory_prefix_old_wp_database_name_99.sql, from it’s previous title.

Now you possibly can head over to phpMyAdmin, go to import, and import the sql file.

Then it's essential open up the wp-config.php file that you simply downloaded, search for DB-NAME once more, and alter the worth to the title of the brand new database.

Now we wish to create a new user. Go all the way down to “Add New User”

Add New MySQL User

Again there may be a mandatory prefix, in which case it's important to open up your wp-config.php file once more, search for DB_USER and alter the user. If you additionally modified the password, it's essential change the DB_PASSWORD additionally.

Now go down so as to add user to database, choose the user you created, and add them to the database.

Step 4: Upload Your Files

Now all it's essential do is add the information you downloaded earlier to the suitable (normally the foundation, public_html) folder of your new host.

Now go over to the the non permanent URL of your new host, and you need to be capable to see your previous WordPress site up and working on the brand new host. This implies that you’re now prepared to alter the title servers.

Step 5: Change The Name Servers

Follow the very same steps as talked about above below the plugin part.

If you’re not altering hosts, however domains, or creating a dev model of your site, it's essential do a few extra modifications…

(Not Changing Hosts, Just Creating A Local Or Staged Development Version or Changing Domain Only ?) Do A Few Final Changes

First go to phpMyAdmin, head over to wp_options, and alter the ‘siteurl’, and ‘home’ fields’ values to the suitable url.

You may use a plugin like Better Search and Replace to search for and substitute all of your previous urls with the brand new applicable url on your native/staged model of WordPress.

This means you possibly can change the url in all of the locations that you simply’ve simply written it out, like for instance in widgets or posts (images in posts will usually be damaged until you utilize a search and substitute device).

Hosts That Do WordPress Site Migrations For Free

Are you in search of a new host, however not utterly comfy doing your personal migration even with a step-by-step tutorial? There are some hosts that offer free migrations while you join their service. Just a few good examples are:

These are all respected hosts in the WordPress sphere and are good selections for individuals at totally different levels with their website.

If you are a newbie, and your site doesn’t have a lot of visitors, InMovement is a nice choice for shared hosting. They offer PHP 7, free https via straightforward let’s encrypt integration, and stellar buyer support.

If your site is blowing up, you’re seeing heavy visitors and also you want a little greater than shared hosting, you possibly can go along with both Flywheel or WPEngine for managed WordPress hosting.

How To Migrate To WP Engine Specifically

WP Engine used to do the migrations for free, however now they really have their very own plugin that lets you simply migrate websites to their platform.

You can get the plugin here.

Be Careful

When you’re doing massive strikes like migrating, particularly in the event you’re implementing new performance or a new design on your site, expect one thing to interrupt. Be ready. Like talked about earlier, again your stay site up, and double examine that every thing is working when your new model is stay.

Congrats, you have got now efficiently migrated a WordPress site.

Let us know in the comments in the event you efficiently migrated your website utilizing these directions.