Saturday , 24 February 2018
Home » WP TUTORIALS » How To Transfer Your Site or Blog To Another Hosting Provider

How To Transfer Your Site or Blog To Another Hosting Provider

Understanding the basic of Hosting transfer :

Pretty much every site that eventually got bigger has seen the necessity of changing hosting providers. And it’s really not surprising, since in the world of vast competition, a webmaster looks for the best of their own site – better disk space, bandwidth, administration options and tech support , and all of that for smaller prices. However , one thing you’d have to tackle is the increasingly difficult process of transferring all your site’s information to the new hosting package without damaging anything you now have. 

In an ideal world, all it would take to transfer your hosting package would be a little copy-paste work. But that only happens with static websites. To clarify, a static website is a website that has no programming/scripting in it, and utilizes no database. The opposite to a static website is a dynamic website, and any site that uses WordPress, for example, is dynamic.

So if we’re going to migrate a WordPress blog, we’ll need to take care not only of the filesystem , but also the contents of the database, and some other minor tweaks.

Backup the files

This step is extremely important, since it will preserve not only your WordPress scripts, but also any themes you might have installed, plugins, widgets …  which are all stored in the wp-content folder of your WordPress installation.

So fire up an FTP Client of your choice and connect to your fileserver. Locate your WordPress installation:

ftp back up

Once you see it, download it to a location you’d remember, be sure to get the whole folder, since you never know what you might need and we need a whole migration  too.

Once you have your new hosting account , make sure to upload all the files to it. Then we’ll get to the next step, namely the database.

Export the database from the old host and import to the new

Most of the times this step will not be at all that difficult, but some people seem to find it a lot difficult. First off, locate phpMyAdmin on your hosting control panel  (which is likely cPanel).

Once you do find it, select the database which holds your WordPress installation. It should look somewhat like this:

wordpress database


Once there, locate the Export button , which will allow you to export the contents of your database. That can happen after you set up some options which we’ll explain a tad bit later.


In the export tab, select SQL, since that’s the format we’ll later use to import our database to the next hosting plan. The other options would benefit you if you want to use your information for other particular needs which are beyond the scope of this tutorial.

Later on, find the “Export to file” option below, and tick that option. That will generate a file which we will use for an easier import on the next hosting plan. If you want to download your database faster, you can choose it to be “zipped” or “gzipped”, with the help of the Lempel-Ziv algorithm, but keep in mind that this may cause more problems later, so we’ll keep “Compression” to “None”.


Afterwards, just click “Go” and download your file.

Now that we have the database backed up, we can use it to be imported on our next hosting plan.  This time, instead of “Export” go to “Import” in your new hosting plan’s phpMyAdmin menu.


Naturally, just browse your file to be imported, and select the character set. This is very important, because if you’re not using English, but rather some other language in your WordPress installation , problems might occur. If you don’t get it right, please import the file once again, this time using the correct character set.  Though most of the times UTF-8 will do just fine.

Following these steps you’ve configured the database correctly.

Redirecting your domain name

This is perhaps the most variable step of them all, since different hosting plans and packages offer different solutions for domain names.  Theoretically, though, it boils down to the changing the name servers to point to a different IP address. In essence, Domain Name Servers are what change for example, to the series of numbers which is its IP address. So to change your domain name to point at the new hosting account, you’d have to contact your domain registrar.

If you didn’t do business with the domain registrar, but rather only with the people who run your current hosting account, contact them and ask them to change your domain to point somewhere  else. Otherwise, find the DNS menu on your cPanel (or other control panel) and change them yourself.

For more details on your particular solution it’s best that you ask the people who run your hosting services – both the old and the new one.

Editing wp-config.php

This file contains your username and password for the database, as well as its address. Make sure to edit the DB_USER, DB_PASSWORD abd DB_HOST constants in the file once you migrate to your next hosting plan.With this, you’ll be ready to undertake the tedious but necessary process of migrating your blog to another hosting plan. Good luck, and have a lot of patience!



Leave a Reply