In this guide we will show you how you can easily migrate your WordPress Website from on Host to Another.

Moving your WordPress website from one hosting to another can be a very challenging job for most people but there is no need to worry because we have made this job easier for you. You can simply open a support ticket with the basic details, and our experienced team will migrate the data without any downtime or dataloss. Incase you want to do the stuffs manually keep reading.

This is an In-Depth guide that you can follow to move your WordPress site to a new server or host. Let us get started without any further delay.

How to Migrate WordPress from one Hosting to Another

We broke down this procedure of migrating WordPress from one host to another into simple steps. These steps are described below:

Step 1.  Duplicate your WordPress website

While migrating WordPress from one host to another, your first step should be always to create a backup of it. There are several methods that you can use to create a backup of your WordPress site. You can find hundreds of plugins that offer smooth backup/restore experiences.

Check out: Best WordPress Backup Plugins to Automate Backup Process

Duplicator is the best WordPress plugin which lets you create a backup of your website for free. The method to create a backup of WordPress site using Duplicator is described below.

Firstly, install Duplicator in your WordPress by going into the plugins section and searching for “Duplicator”. Once the plugin gets installed, click on the “Create New” button that is there next to Packages.

Then, simply click on the “Next” button. After that, click on the “Build” button.

Now, the plugin will take some time to create a backup of your WordPress site. It may take a long time depending upon the size of your website. Make sure that you do not close the window while this process takes place.

When it finishes, you will be able to download the installer file along with the archive file of your backup.

Step 2. Get your new host ready

Before moving your backup file to the new host, you will have to take care of two things:-

  • Adding your domain name to the server
  • Creating a blank database for the website

We have described the complete procedure to do both of these things below:

Add your domain name to the server

Step 1. Log in to cPanel using your credentials and go to the Addon Domains under the Domains section.

Step 2. Then, just enter the domain name of your site into the New Domain name field and leave the other field empty. The other two fields will be filled automatically.

Step 3. After that, click on the “Add domain” button.

Create a new Database

Step 1. Firstly, go to the database section and select the MySQL Database Wizard option.

Step 2. Choose any name for your database and enter it in the New database field. Then, click on the “Next Step” option.

Step 3. Now, pick a username and password for your database and click on the “create user” option.

Step 4. Then, select the “All Privileges” option and click on the “Next step” button.

Your new database is now created!

Step 3. Upload your site to the new host

Now, this is the right time for you to upload your site to the new host server. To do that, simply follow the steps described below.

Step 1. Go to the File Manager of the cPanel by going to the files section.

Step 2. Then, go to the directory where your new domain has been created. It will look something like this in most cases: public_html/YOURDOMAIN.com

Step 3. After that, upload your website’s archive file in this directory. Make sure you upload both the .zip and installer.php file.

Edit your Local host’s file

To make your new server accessible to the public, you will have to configure your local computer to the new server manually when you browse the domain. The steps to do this are provided below.

Editing Local host’s file on Windows

Step 1. Go to C:\Windows\System32\drivers\etc and look for the host’s file there.

Step 2. Open the host’s file and paste this text after the end of it: YOUR.SERVER.IP.ADDRESS YOURDOMAIN.com.

Step 3. Save the changes that you made in the host’s file.

Editing Local host’s file on Mac

Step 1. Launch the terminal.

Step 2. Hit Enter after typing in the following command: sudo nano /etc/hosts

Step 3. Enter your password.

Step 4. Now, position your cursor at exactly the bottom using the arrow keys on your keyboard.

Step 5. Paste this text after the end of this file: YOUR.SERVER.IP.ADDRESS YOURDOMAIN.com.

Step 6. To save the changes that you in this file, hold down “Control” and “O” keys.

You have successfully edited your Local host’s file. Now, if you try to navigate to your site, you will be taken directly to the new server.

Step 5. Install your site via an online installer

The second last step is to install your site via an online installer. You can follow the steps provided below to do this.

Step 1- Open your browser and go to YOURDOMAIN.com/installer.php.

Step 2- Accept the terms and conditions and click on next.

Step 3- Now, enter the connection details of your new database here. The host value should be “localhost” in most cases. Fill all the required fields and click on the “Test Database” button.

Step 4- Confirm the popup message and the installer will be opened.

Step 5- Again, click on the Next button to confirm the title and URL of your site.

This was it! You have finally installed your site on the new server. You can now move forward to the last step.

Step 6. Redirect the domain name

You have migrated your complete website to a new server. Now, the last step is to redirect your domain name so that people who visit your old server get redirected to the newer one.

You can easily do this by changing your nameservers. You will need to provide your new DNS addresses. You can get these addresses by going to your host’s user panel. Just change the old ones with the new ones.

After that, wait for 24-48 hours because nameservers generally take this much to update. After your nameservers get updated, you will be redirected to the new server when browsing the old server’s address.

Wrapping Up

This was the complete guide of migrating your WordPress site from one server to the other. We tried our best to demonstrate the steps in detail. You can skip the hassle and Get a Managed Shared Hosting to get free migration and 24/7 Support.

In case you have any queries, then you can put them in the comments section. Make sure to subscribe to our newsletter to get notified whenever we upload more such useful guides.

Previous ArticleNext Article

Leave a Reply

Your email address will not be published. Required fields are marked *