Sunday, May 18, 2014

How to transfer your Wordpress Site from one host to another with a different domain name?

Transferring a WordPress site can be tricky sometime especially if you are new to this stuff. Here are the steps that I can suggest to make your work pretty simple and fast.

1. From the origin host, back up your website files and database.
-The fastest way to backup up your files is to compress the file from the file manager.

2. Go to the new host and make sure you should know where your new domain/subdomain is currently pointed at (the ftp directory where this pointed at). Normally you can check this by going to Domain and check where this domain is pointed at. Upload a test index file to the directory and check if that domain/subdomain is really pointing to it.

3. Once you are sure that the domain/subdomain is pointing to that path, then it is now the time to import your zip file (website files)
-You can unzip the file pressing the unzip button to uncompress it. This can be easily be done using the FTP manager in the regular cpanel.
-However if you are using fatcow or ipage, you can uncompress this zip file under "Additional tools > Archive Gateway".


4. Create a new mySQL database file and import your SQL file into it.

5. Go to your file manager, locate the directory where you uploaded the your uncompressed file and look into this file wp-config.php and edit the database details (username, host and password).
-Most of the cpanel use "localhost" for the hostname/servername however there are some hosting companies require you to use their specified hostname. Fatcow for example use this hostname "username.fatcowmysql.com "

6. Open a new browser and login to your WP site.
Example: http://new-domain.com/wp-admin

7. Notice that when you login, it will still redirect to the old domain. Example: http://old-domain.com/wp-admin

8. To fix this, you need to go to your cpanel and login to your phpmyadmin.
-Once you are inside the phpmyadmin, look for wp_options and click browse
-Under the option_value, you can see a big white box, change the URL information to the new address. Example: http://new-domain.com
-Verify this is correct and click Go to save the information.


9. Open a new browser, clear cache and check your site again.
-Go to http://new-domain.com/wp-admin
-Once you are login to WP dashboard go to Settings > General. And check if the WP site URL is now pointing to the new domain. Update the site address as well and then save it.

10. Your site now should be completely migrated to the new server :)

No comments:

Post a Comment