Chat with us, powered by LiveChat

This website uses cookies

Our website, platform and/or any sub domains use cookies to understand how you use our services, and to improve both your experience and our marketing relevance.

WordPress 5.0 is out. Test all the great new features before upgrading your Live website. Read How!

How To Migrate WordPress Website To Another Host Easily!

Updated on May 8, 2018

5 Min Read
Reading Time: 5 minutes

Moving something in our analog lives is easy. Using your hands, you can just pick something up and move it. However, the same condition does not apply to our digital lives, especially when we want to migrate WordPress websites.


Migrate WordPress site is a bit messy, if not done correctly. I thought I should give everyone a guide—a sort of a helping hand—for this evergreen issue. So, let’s start migrating WordPress on cloud server.

How many fingers are there on your hand?

Can anyone Answer? Five.

More or less, all of us know the names of them too. Let’s start with the names: thumb, index finger, middle finger, ring finger and baby finger.

Before you think the writer has lost his marbles, allow me to tell you that WordPress migration can be as easy as counting your fingers if you follow this tutorial correctly. So without any further ado, let’s begin to move a WordPress site.

But first, take a back. As they say, “Prevention is better than cure.” Even though you will not lose your hands if anything goes wrong, you do have a chance of losing all of your data (and that hurts like amputation). So, backup a WordPress site is essential before you attempt to move a WordPress site.

Read Here: How to backup a WordPress site

Note: There are 5 steps involved to migrate a WordPress site from another host whereas, on Cloudways, it is just 3 steps.

For the sake of learning, I have associated each step on a fingertip.

Step 1 (Thumb): Uploading Files

FTP Method

Stick out your thumb, login to your existing hosting account, navigate to File Manager and get into the particular folder where your WordPress files exist. Compress (zip) all WordPress files. Upload the zip file to the new hosting provider using File Transfer Protocol (FTP) or File Manager on your new hosting account. Once uploading is done, Extract the zip file.

SSH Method [The FASTEST Way]

Above process can also be done using SSH if your hosting offers you this service. Uploading through SSH is comparatively faster than using FTP. Some hosting providers like Cloudways also offer integrated SSH terminal. Others can use PuTTy to connect to their new server.

Once connected to the server, access public_html folder as this is the root folder to keep WordPress files. Inside this folder, upload the folder we zipped earlier in FTP method.

Go to your File Manager in cPanel and make sure that your zipped folder is inside the public_html folder. By default, its name would be, change it to something else like Now verify its location by accessing its URL. When the correct URL is accessed, download starts automatically.

The generic URL might look like this.

Now go back to your PuTTy terminal and write the following command. Make sure that you are still in your public_html folder.

Once the download is completed, you will see a new zip folder added to your public_html folder present inside your new host. To unzip the folder, run the following command.

Now all the files from your old sites are imported to your new hosting. Follow the next step to migrate the Database.

Step 2 (Index Finger): WordPress Database Migration

Create a database and user on new hosting by going to MySQL Database Wizard. Note down these credentials as you will need them. Go back to your old WordPress site, install UpdraftPlus plugin to Export your database.

Backup WordPress Database

Using phpMyAdmin on the new hosting account, Import the above-created database.

Import Database File

Step 3 (Middle Finger): Tackling The Tricky Bit

A little tricky step on the go that is associated with the middle finger. *Sorry!*

Simply go to wp-config.php (you can find it on root) and replace the credentials with the one you earlier noted i.e. DB_NAME, DB_USER, DB_PASSWORD. In some cases, during moving WordPress site to a new host, you need to provide the DB_HOST which depends on your server. Other than that, you are ready to go!

Update wp-config Database Credentials

Step 4 (Ring Finger): Finalizing The Process

The ring has a circle shape, but I will not let you go round and round with it.

Find the table xxxxx-option in your database. Replace option_value of siteurl and home with the new URL of your site.

Change siteurl and home

You can now visit, go to Settings and then select Permalinks and change it as per your desire.

Step 5 (Baby Finger): Settling In

And yes, now is the time to surprise you, you can use this simple plugin Velvet Blues Update URLs, and it will amend all old URLs to new URLs. Don’t you think it is as smallest as the baby finger?

VelvetBlues WordPress Plugin

Note: If you are unable to visit the site, try clearing your browser cache.

Migrate Your Site to Cloudways in Just 3 Simple Steps!

As we have discussed earlier, the shortest method for WordPress migration from one host to another involves five steps. What, if I shorten it to 3 simple steps?

  1. Install Cloudways WordPress Migrator on your current hosting.
  2. Enter the necessary credentials.
  3. Click Migrate.

Here is the short video guiding how easily you can migrate WordPress to another host (Cloudways) and experience the speed of optimized cloud servers.

Still, want to do something? Come on; I don’t want you to do anything more! Just check your new website out. It works great. Hurrah!


Have some coffee and enjoy, but do comment your valuable suggestions and feedback to us!

Share your opinion in the comment section. COMMENT NOW

Mustaasam Saleem

Mustaasam is the WordPress Community Manager at Cloudways - A Managed WordPress Hosting Platform, where he actively works and loves sharing his knowledge with the WordPress Community. When he is not working, you can find him playing squash with his friends, or defending in Football, and listening to music. You can email him at

Be the first to check out WordPress 5.0

Use our Staging feature before upgrading your website to WordPress 5.0.

Get Our Newsletter
Be the first to get the latest updates and tutorials.