When the WordPress hosting account is about to expire, many people are frustrating that whether transferring to a new host or renewal the existing account. Even some people want to transfer their site, but hesitate to the complex migrating process. Actually, with our real experience, we support moving WordPress site to a new host. We explain the reasons and introduce the simple migrating steps to help you below.
Why Transfer To New WordPress Hosting?
There are many reasons lead to the transfer. Some people do this because of problems such as the frequent downtimes, slow speed, long loading time, hacks, attacks or other security issues, and many more. Some people to this just because they find the web hosts alluring them with low price at first, but actually coming with terrible services and poor support. Even some people just don’t like the existing web hosts.
In addition, the price is a crucial factor. In general, web hosts attract customers with low price, but note that, the price is only valid for the first billing term. When coming to renewal, the renewal price is unreasonable expensive, even two times or more expensive than the initial price. Besides, most of the excellent web hosting companies don’t provide any renewal discounts or coupons to the existing users. In this case, signing up a new account on another WordPress hosting company, you are available to the discounted price which only works for the new customer in the first billing cycle.
Maybe you have some other reasons, but they don’t really matter. Overall, one thousand people have one thousand reasons, or even more, but for all these reasons, you can solve them easily by transferring to a new WordPress hosting provider.
How To Transfer WordPress Site To A New Host?
As some users are confused to the complex migrating process, we come out this simple tutorial, with which you can finish the transfer with the following 4 steps.
As the process to transfer website, restore important databases, and get every software installations and configurations, it may take several hours before your site is fully functioning again. However, we suggest you don’t cancel your existing WordPress hosting account before the move is complete. If you inform the old web host before transferring, your site may encounter downtimes as well as complete loss of files and databases.
Ensure all backup files are Restored and Undamaged
Before processing any changes in your website, it is important to keep a backup for all necessary and supplementary files and data. The full WordPress backups should include your theme data and files, uploads, used plugins as well as your database. Data backup can be done using various tools such as phpMyAdmin, Sequel Pro especially for OS X, terminal commands, MySQL or WP-DB-Backup that offers one extra copy of the database through download or by email.
Export WordPress Database
For this, you need to log into your control panel offered by your web host and find the related tool. Here, we take cPanel as an example. After entering, you can open phpMyAdmin.
The next stage is selecting the database containing WordPress installation and then clicking on the export tab from the navigation menu. After that, you can press ‘Go’ button for starting the process of database export. Some advanced configurations can be made according to this image showed in below.
Transfer WordPress on a New Host
Before installing WordPress in the new hosting provider, it is important to create a supportive environment by choosing a trusted WordPress host. There are a lot of options online, and the following three are the top choices that are used and trusted by a large number of WordPress users.
To better explain the steps, we take HostGator as an example, which is a top-rated WordPress hosting provider on the web. For this, it is essential to create a database that can help in importing the SQL data. After going with this company, you need to login into your account using the credentials supplied by the new host, and then connect with cPanel control panel.
It’s easy and short, and the steps are simple:
- Open the MySQL database for creating a new one with appropriate website name
- Provide a secure username and password for the new MySQL
- Integrate the new user with a new account database and then provide all privileges to it
- Don’t forget to remember the name of the database, MySQL password and username for future use
Edit wp-conflig.php File
Explore the wp-config.php file in the local computer and create a copy. This file controls the contact between database and WordPress. After making a copy, store it in a different folder. This process is essential for the restoration of the future changes, and it also works as a secure backup step.
After opening the file’s original version, you have to make the below mentioned changes:
- Changing the name of the database by locating a line given below.
- Changing the username of the database by using the following line.
- Changing the user password of the database. You have to locate and edit the line provided as below.
You have to change the name of the newly created database.
Here you have to change the old username with a new one just created.
Close the current file after saving wp-config.php.
Import the Database to A New Host
The import process can begin by launching the phpMyAdmin on the newly established server from cPanel and then selecting a new database. Click to the import tab from the navigation panel. Click the button, choose file and choose the SQL file exported previously. Click Go button to start the import.
Upload Files in The New Host
In this stage, you have to use FTP program to connect with the newly created database. Using the remote directory, you can upload the files in the new website that includes the revised version of wp-config.php. Also, the utilization of File Manager that can be founded in cPanel is appropriate.
Establish New URL and New Domain
A common problem faced by users of WordPress while transferring their domain is the breakage of the chain links when moved to the newly created site or domain. This issue can be resolved using the script Search Replace-DB presented in the IT hub. This script can help in easy and quick search of the old domain links that can be imported. However, make sure that the script is deleted after the use for security purposes.
Configuring the DNS setting of the new domain can be beneficial in ensuring that IP address has the correct records. It takes almost 48 hours for the new WordPress domain to propagate and fully function. Avoid making any change in the new host site for a smooth transition.