Make a full WordPress Transfer

In this article, we will show you How To Move Your WordPress Site to New Server or from local server to a live site.

A WordPress migration from one hosting provider to another is an easy task if performed properly.

Basically, to make a WordPress migration from one host to another consists of four parts – moving the files, moving the database and reconfiguration and linking URL.

Transfer WordPress Files

To move your files from one host to another you can use your favourite FTP client. If your old host is using cPanel, you can use the File Manager tool to create a .ZIP archive of all your site files. You can then transfer it to your new host and extract it. This will save you time because transferring one big file is much faster than transferring thousands of small ones.

Migrate the WordPress Database

The second step is to move your database. First you need to export your database from the old hosting account. If it uses cPanel you can easily create a dump file(export/backup) of a database used by your account. In order to do so you should access the phpMyAdmin tool available in your cPanel: If not, contact the support team of your previous hosting company in order to receive more information on how to export your database. After you have your data exported, create a new database on your new hosting account and import your content in it.

If database name or user changes, edit wp-config.php to have the correct values.

 Reconfigure WordPress to work from the new server

Now, you have your files and database transferred. All you have to do is to reconfigure your WordPress application to work from the new place.

To do this, open the wp-config.php file in your WordPress root folder and locate the following lines:

define(‘DB_NAME’, ‘user_wp1’);

/** MySQL database username */

define(‘DB_USER’, ‘user_wp1’);

/** MySQL database password */

define(‘DB_PASSWORD’, ‘password’);

You need to replace those values with your actual database, database username and password for it.

Linking to New URL & Defining New Domain

One issue people always seem to have when moving their site is that they’ve added links to other posts on their site or inserted images directly by pointing to a URL on the server, causing these to break when moved over to a new domain. If you want to quickly and easily search for any instances of your old domain name and replace with the new name we suggest  you to use the Velvet Blues Update URLs or Better Search Replace plugins if you can access your Dashboard.

Make sure you are running the search and replace on the new domain you are transferring the site to not the old one.

Changing Site URL: By doing a search and replace for the old domain and replacing with the new domain you’ll also be altering the site_url and home url values in the database (Changing the Site URL) which will ensure that when you try to log into your site on the new domain it doesn’t try and redirect you over to the old domain.

Summary

Moving WordPress doesn’t need to be complicated. As long as you follow the steps above in the right order, your data will be safe and your website will work in its new location. Important points to remember are:

  • Always back up your website before you start.
  • If moving WordPress within a domain, you don’t need to move the whole thing, just make some changes to the settings and move and edit the index.php file.
  • When uploading your database to a new location, make sure you upload the version that you’ve edited with the new URL, not the backup version with the old URL. Otherwise, at the very least, internal links will break and it’s possible you’ll see the white screen of death when you try to install your website.

Let us know you have any issues while moving wordpress website. Our technical team might able to help you for very nominal fees.