Today I am going to tell you about an very easy guide on how to move or transfer a wordpress site into a new web hosting server. It is very easy and won’t cause you any loss. Please read through my steps and you will be done very smoothly.
1) Upgrade your WordPress
Upgrade your WordPress installation. This is important if you want to use Fantastico to install WordPress script in your new web hosting later as they tend to provide the latest version of the script for automatic installation.
2) Backup needed files and database
a) Backup your wp-content folder that usually contains your uploaded files and images, plugins, and themes files. Backup also other personal files you wish to transfer to the new host. A good FTP program that let us do this quick is FileZilla since it’s free and easy to use. Keep the files properly in your hard disk.
b) Identify the database name that your WordPress blog is currently using and then backup it using phpMyadmin. How you are able to do that has been explained briefly by WordPress team here. Backup several copies for safety. If you plan to download the database using Firefox browser, don’t opt to get the file in .gz archive as Firefox might corrupt it later.
note: What you should have now in hands are: database + any files you wish to transfer + folders and files in /wp-content folder. If you got all the items, then proceed to the next step.
3) Change your domain’s name servers
Change the nameserver of your domain to the name servers provided by your new web hosting company using your domain registrar control panel. As example, for XeonBD change to: ns1.xeonbd.com, ns2.xeonbd.com, ns3.xeonbd.net .
Usually, DNS propagation will take some time to complete so while waiting, turn to the next step. Make sure that you can access your FTP server (where you can upload files) in your new web hosting using FTP program first. (Refer to your new web hosting’s documentation in FTP section)
3) Install WordPress (fresh install) in your new web hosting.
After you have verified that the FTP program can connect correctly, using Fantastico or any other script installation service in the cPanel, do a fresh installation of WordPress blog in your new web hosting. After that, delete its database.
4) Upload needed files and database to the installation folder
a) Using the FTP program again, upload files in /wp-content folder just now to the same folder in your new installation. Choose overwriting when the FTP program ask you what to do with the file with the same name.
b) After finished uploading, upload your previous blog’s database to your web hosting using phpMyAdmin. If your database file is larger than 8mb, then e-mail your new web hosting company technical support to import it for you: upload the database in your old web host + email them the download link and your account details.
5) Connect your WordPress to the database
Connect your fresh installation of WordPress just now to the database imported by editing required database information in wp-config.php file in the root folder of the installation (where you can find index.php in), according to your imported database name, user name, password, and host name (usually localhost).
The steps mentioned above if done properly than your recently moved wordpress site will be working properly without any hassle.