How To Migrate WordPress Website To Another Host in 3 Easy Steps!

by Mustaasam Saleem  April 19, 2017

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 move our WordPress websites.

Migrate WordPress Other Host

Migrate WordPress site is a bit mess, 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.

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.

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, backups are essential before you make any significant changes.

Read Here: How to backup a WordPress site

This is a 5-step tutorial. For the sake of learning, I have associated each step with a finger.

Step 1 (Thumb): Uploading Files

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 on 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.

Step 2 (Index Finger): Creating The Essentials

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 migration, 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 http://newurl.com/wp-admin, 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 migrating your WordPress site from one hosting 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 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!

Make Your WordPress Website 100% Faster.

Host it now on Cloudways WordPress Hosting Platform.

About 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 mustaasam.saleem@cloudways.com

Stay Connected:

You Might Also Like...

  • shozabhasan

    really easy with it.

    • Syed Waseem Abbas

      Yes it is! It made easier for the bloggers and developers mostly by providing plugins. By the way thanks and wish to see the same thoughtful feedback in my upcoming posts.

  • Salman Mehdi

    Good post Waseem! Keep it up…

  • Ayesha Imtiaz

    Very nice article waseem, read it all. Go0d job!

  • ipho9

    Where is phpmyadmin in cloudways?

    • @ipho9:disqus Can you please elaborate, which service of Cloudways you are talking about so I can guide you exactly the same as you acquired. 🙂