Easiest Methods to Migrate WordPress Website From one Hosting to another

1 comment
This tutorial explains how to make a WordPress transfer to a new hosting platform. Whether you're transferring from WordPress.com or from another regular hosting provider, here you will find detailed instructions on how to migrate WordPress to a new host. Migrating a site manually can be fiddly and you risk messing things up (though if you follow our step-by-step guide How to Safely Move Your WordPress Site (Without Losing Anything!) you shouldn’t have any problems at all). If you want to avoid the hassle and cut down on the amount of time it takes to move a site, there are plenty of plugin options that make migration a piece of cake. The list below includes free and premium migration plugins (and one script!).

Migrate WordPress to New Server

Make a full WordPress Transfer

A WordPress migration from one hosting provider to another is an easy task if performed properly. It consists of three parts - moving the files, moving the database and reconfiguration (if needed).

Transfer WordPress Files

To move your files from one host to another you can use your favorite FTP client. For more information on how to use FTP, you can check our FTP Tutorial. It explains how to move the files of the application first to your local computer and then to upload them on the new account. 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 follow these instructions. 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 the migrated content in it.

Reconfigure WordPress to work from the new server

Next you have to reconfigure your WordPress application to work from the new place. To do this, open the wp-config.php file in the WordPress root folder and locate the following lines:
1
2
3
4
5
6
7
define('DB_NAME', 'user_wrdp1');
/** MySQL database username */
define('DB_USER', 'user_wrdp1');
/** MySQL database password */
define('DB_PASSWORD', 'password');
/** MySQL hostname */
define('DB_HOST', 'hostname');
You need to replace those values with your actual database, database username and password for it. The hostname should be replaced with localhost. Then save the file and your WordPress site should be up and running from your new hosting account!
If the domain name used by the WordPress is changed on the new server, then additional reconfiguration is required. You can check this tutorial how to do that.

Transfer WordPress from wordpress.com

To transfer your blog from WordPress.com to a stand-alone WordPress installation on your hosting account can be done with just a few clicks. To move your site, first login to your WordPress blog at wordpress.com and go to the Tools menu. There you will see two sections - Guided Transfer and Export. Click the Start Export button under the Export section.
Then choose All content and click the Download Export File and you will be prompted to download an .xml file, which contains all the data from your WordPress.com blog.
Now you need to import the information from the .xml file to your stand-alone WordPress installation. If you have one installed, login with your admin username and password. If you want to install a fresh WordPress application, check out our WordPress installation tutorial for more information on how to do this. Once you login, select the Tools menu from the left column and chose Import. On the next page, click the Install Now button under the WordPress section at the bottom.
The plugin required for the import will be automatically installed, after which the Install Now button will change to Run Importer. Click that button and on the page that opens click Browse. Then a popup will show up and you must navigate and select the .xml file that you have downloaded from your wordpress.com blog earlier. Then click the Upload file and import button.
If the content which you want to migrate is quite large the corresponding web server's timeout value can be reached before the data is fully copied. In this case you need to reupload the .xml file. The system keeps a record for the migrated content and will proceed with the remaining data. Repeat the procedure until you receive a confirmation that the process is successfully completed.
Since you will be inserting new posts and pages WordPress needs to know who will be their author. On the next page you can either select an existing user as posts author, or you can create a new one for the imported data. Note that you should check the Download and Import file attachmentscheckbox if you want your photos and other attachment to be transferred too. Finally, click on the Submit button.
That's it! Your data is now transferred from your WordPress.com account to your stand-alone WordPress application.
IMPORTANT NOTE: 
Note that this will transfer only your content - posts, pages, media. All the plugins and themes you've used at WordPress.com are proprietary and not part of the transfer. You will have to choose a new theme and install all the necessary plugins you need additionally on your self-hosted WordPress site.
Read More
Next PostNewer Posts Previous PostOlder Posts Home