How to Move A Website to a New Hosting Company

Move a website

Moving website to another hosting company is a serious issue one might face in changing web hosting companies. Generally, move a website from one hosting company to another is what’s going on in the world of the internet today.

Every decision you make on your online business has one reason or the other to back it up. Meanwhile, one must be very careful while trying to move a website from one hosting company to another.

I want you to know and understand that a single mistake may cause a serious issue on your website. This is one of the reasons you need to consider before you move a website from one web hosting company to another.

A while back, I got really tired of GoDaddy hosting several of my small projects and decided to move many of my small websites over to HostGator.

The instructions here are the same for any host that runs cPanel. If you are running your website on any hosting company with cPanel, you land your self in the right place.

Step by Step Guide to Move A Website to Another Hosting Company

As we explained above, here are the complete steps guide to move a website to another web hosting company running on cPanel.

Step 1

Set Up New Host – database, folder, and add-on domain

The first action is set up a new database, folder, add-on domain on HostGator. Now you need to complete the steps below.

1 ====> Log in to your HostGator cPanel. You access this after your subscription on HostGator

2 ====> Use mySQL Wizard to create a new database + user (save the info)

3 ====> Go to File Manager and create a new folder in the publichtml folder

4 ====> Go to Add-On domain and add the domain name, and point it to the folder that you just created

Step 2 

Get Your Old Stuff – old database, and the entire old folder

Note: before getting any of your old stuff, you can save time by deleting any unused themes, plugins, and media from your site. But be sure once you start this Part you don’t make any changes at all to your website. The steps here are as follows.

1 ====> Log into your old web hosting company (like GoDaddy)

2 ====> Navigate to your databases, log into phpMyAdmin

3 ====> Select the database of your WordPress site, then Export

4 ====> Click on ’select all’ and ‘SQL’ from the Export menu

5 ====> Select ‘add Drop Table’, ‘add Auto Increment value’ and ‘enclosure table and field names with blackquotes’ from the Structure menu

6 ====> Select Complete inserts and Use hexadecimal for binary files from Data

7 ====> You can leave all the other values at their defaults

8 ====> Once all those settings are selected you simply click on save as file.

9 ====> Now open FileZilla (or any FTP client), and log into your old host

10 ====> Select the folder of your website

11 ====> Download the entire folder to your Desktop

Step 3

Upload Website Files To New Hosting: This aspect refers to moving your website to the new Hosting company. Here are the steps you need to take:

1 ====> Go to Databases –> phpMyAdmin and login

2 ====> Select the database that you created in step 1 above

3 ====> Import the downloaded database

4 ====> Go back to FileZilla, connect to the new host

5 ====> Navigate to the folder you create in step 1, open it

6 ====> In the left pane, open the downloaded folder from the old host

7 ====> Select everything in the downloaded folder (I use CTRL-A to make sure)

8 ====> Upload the files (not the folder) to the folder on the new host

Step 4

Fix Configuration Files, Re-Point Domain, Final Check: This is the final aspect of this article. Here you are to fix configuration files, re-point domain and do the final check. In achieving these, the following steps will guide you through.

1 ====> In FileZilla, look in the new host folder for wp-config.php

2 ====> Right-click and open the file with NotePad, TextEdit, or NotePad++

3 ====> Look for a section that looks like this:

/** The name of the database for WordPress */
define(‘DB_NAME’, ‘cpuser_dbname‘);
/** MySQL database username */
define(‘DB_USER’, ‘cpuser_uname‘);
/** MySQL database password */
define(‘DB_PASSWORD’, ‘******‘);
/** MySQL hostname */
define(‘DB_HOST’, ‘localhost‘);

4 ====> Replace the bolded sections with the information from the database you set up in Step 1 above

5 ====> The database name, username, password, and if using HostGator, DB_Host will be localhost

6 ====> Save the file

7 ====> Scroll down and find your server’s IP Address.

8 ====> (next steps may vary depending on how your domain is registered)

9 ====> Go to wherever your domain is registered at and change the A Record and www Record to the IP Address on your new server.

10 ====> Check out your website and do a final check of everything

11 ====> Congratulations


From the steps split above, it was clear and explained details on how to move a website from one web hosting company to another. specifically, on web hosting tha runs on cPanel.

If you have not migrated between web hosting before and planning to do so, we recommend using HostGator. You will get it done in simple steps as shown above.

Related articles:

HostGator: Web Hosting Review 2019

SignUp for HostGator Affiliate Program Guide

New Development to Create Web Hosting Account With Hostgator

About the Author: Vpnxon

You May Also Like

Leave a Reply

error: Content is protected !!