DED9

How to Move WordPress to a New Host or Server

Moving a WordPress site to a new host

How to move WordPress to a new host and server. The biggest risk in moving WordPress to a new server is data loss or possible corruption. In this article from the series of WordPress trainings of the Ded9.com blog, we will introduce you to how to transfer WordPress to your new host or server.

If you need a fast and suitable WordPress host to host your WordPress site, I suggest you visit our WordPress hosting plans.

Step 1: Choose your new WordPress website host

When looking for a new WordPress host, you need to make your choice carefully. Because if you make the wrong choice, you still have to move WordPress to other hosts.

After buying a new host, your hosting account must be empty of any files and folders in the main directory.

Step 2: Install the Duplicator plugin to transfer WordPress

The first thing you need to do is install and activate the free Duplicator plugin on the website you want to transfer.

Duplicator is a free plugin that we highly recommend. This plugin can also move your site to another domain without worrying about SEO ranking.

However, in this tutorial, we will talk about how to move your site to another host without losing any data.

After installing and activating the Duplicator plugin, go to the Duplicator >> packages section in the WordPress admin dashboard. Then click on the “Create New” option in the upper right corner of the page.

After that, click on Next and continue the process of creating your package.

Make sure all your scan results are correct and everything is in good condition, then click the “Build” button. This process may take a few minutes, so do not close the screen to complete the process.

After completing the process, you need to click on both “Installer” and “Archive” buttons to download both files. Remember that you need both files.

The “archive” file is a copy of your site and the “installer” file performs the installation process automatically for you.

Step 3: Import the WordPress site to the new host

Now that you have downloaded the archive and installer files, the next step is to upload these two files to your new host. You can do this using FTP. (Introducing 5 of the best FTP clients for WordPress users)

Upload both “installer.php” and “archive.php” to your website’s root directory using your FTP client or file manager. This directory on the host is usually: / username / public_html / or /username/public_html/example.com, which as you know example.com will be your domain name.

Make sure this directory is completely empty and contains no files. If you already have default files or even WordPress installed, be sure to remove them.

Step 4: Modify the hosts files to prevent corruption

After you have uploaded the files to your new host, you should be able to access the installer.php file from your browser. This file can be accessed through the following address:

http://www.example.com/installer.php

If you get a new domain and your hosting is set up, it’s easy to run through the setup page and you should move on to the next step.

But if you try to connect your previous domain with another host that is now set to this host, it will redirect you to a 404 error page. Because your domain still points to the old host.

Host files point a domain name to a specific IP address.

In this step, we will show you how to write a new line in these files to transfer the domain to the new IP host. However, only when requests are sent from your computer.

By making these changes, you can access the new host through your domain.

Other users will still be redirected to your old host. This is a 100% uptime guarantee.

The first thing you need to do is get your new hosting IP address.

To find it, go to your cPanel dashboard and click on “expand stats” in the left sidebar. You will see information about the status of your server.

Next, Windows users should go to Programs >> All Programs >> Accessories. Then right click on Notepad and select Run as Administrator.

Wait for UAC to ask for permission to run it. Then, by clicking Yes, Notepad software will be run with Administrator access.

On the Notepad page, go to the File >> Open tab and navigate to C:\Windows\System32\drivers\etc. Select the hosts file and open it.

Linux users should also open their terminal program and run the following command to change the hosts file:

sudo nano /private/etc/hosts

At the bottom of the host files, they should enter the IP address they copied along with the domain of their site as follows:

192.168.1.22 www.example.com

Save the changes and you can now access your files on the new host using your site’s domain name.

Important: Don’t forget to uninstall these changes and delete the last row after the WordPress site migration is complete.

How to move WordPress to a new host and server

Step 5: Start the WordPress migration process with Duplicator

Now we are ready to run the “installer” file. Go to the following address in your browser and replace example.com with your domain name.

http://www.example.com/installer.php

If you have never created a database for your new host, you will need to create one in cPanel.

After creating the database, you must enter its information in the following fields and then click the “Test Connection” button to test the connection.

After successfully connecting to the database, scroll to the bottom of the page and read the Warnings and Notices section. Then check the “I have read all the warnings & notes” checkbox and click the “Run Deployment” button.

Here the installer starts importing your database. It may take a while.

In step 2 of the installer script, you will be asked to confirm your old and new URL paths. Once you are sure that this information is correct, click Run Update to update the URLs.

Finally, you can finish the transfer process by clicking the indicated buttons in order and testing that everything is working properly.

Now you need to undo the changes you made in step four.

Step 6: Update the domain

To update your domain you need to change your DNS nameservers. This will ensure that your users are directed to your new hosting account by entering their domain name.

To do this, go to your previous hosting account or domain registrar site and go to your domain settings.

There, delete the nameserver fields and replace them with the new host’s nameserver. You can also find new hosting nameservers through the cPanel dashboard.

If you have problems, ask your new hosting provider about nameservers to provide these two links. These addresses are usually as follows:

ns1.hostname.com
ns2.hostname.com

After successfully updating the nameservers, you will need to wait between 4 and 48 hours for the changes to be applied to all users’ DNS.

Conclusion

In this article, you learned how to transfer a WordPress site to a new host or server. If you need a fast and suitable WordPress host to host your WordPress site, I suggest you visit our WordPress hosting plans.

Exit mobile version