Are you wondering how to transfer web hosting? We’ll help you!
There are numerous reasons you might want to change hosting providers. According to our research, price is the most common motive being followed by the features. Whatever you decide to do, it is essential to ensure that you’re getting the best price than what you’re currently getting!
If you’re not yet deciding on a new provider for your hosting, Our comparison chart of hosting services is an excellent resource for selecting your new provider.
If you’ve already have a plan in mind and are now ready to switch, We’ll show you how to achieve this:
How to transfer Web Hosting in just nine steps
- Sign up with a brand new host provider
- Backup your website’s files
- Export your database
- Create a brand new database
- Import your database
- Modify the website’s file
- Upload the website’s files
- Check your site
- Change your DNS settings
1. Sign up for a new Hosting Provider
The first step to moving to a new host is to decide the location you’d like to relocate to and sign up for a plan.
As we’ve mentioned before, some hosting providers can transfer your hosting to you, and these are the ones we’ll focus on here.
Hosting is a competitive field, and helping transfer a client’s site gives some hosting providers an advantage over other providers.
2. Save your website’s files
The next step is to save the website’s files. It may sound daunting, but it’s easy.
The purpose of this is to create an image digitally of your website exactly as it is now so that you can transfer all of it, including plugins, uploads, everything else – to the new website.
It’s vital to ensure that you don’t play when downloading the files downloaded. This could destroy the structure of your website and cause damaged internal hyperlinks.
3. Export Your Database
Some websites do not have to go through these steps (or the two steps below), as some do not have databases.
You’ll likely know whether or not yours is and if not, it’s worth looking into your current hosting service provider, who will be able to provide you with the information.
Static websites (where the content remains unchanged) might not include a database. Sites that allow users to create content (e.g., comments) and dynamic sites (which alter automatically depending on the page from which they’re visited or other websites or pages) are likely to include a database on the site.
The most popular kind of database is MySQL. This can be exported using the program phpMyAdmin that you can effortlessly access via any hosting account using the traditional cPanel dashboard.
4. Create an entirely new Database
Before importing your database onto your new dashboard on hosting, it is necessary to create the database blank first.
Log in first to the new account on your hosting. We’ll assume that your database is a MySQL one and that your new hosting provider uses the traditional cPanel dashboard.
You’ll then be asked to create an account and password. Take note of these and then grant the user the full power of access at the point of prompting.
5. Import Your Database
In the next step, we’ll be downloading the database file and transferring it to the database we’ve created in our brand new hosting account.
- In the brand new account on the hosting platform, go through the Database section.
- Choose the phpMyAdmin application.
- Click the + button beneath your user name on the left side to display all the databases you have (including the one you made)
- Choose the database you want to create from the list. It will say ‘No tables in database’ will pop up (this is the message we are looking for!)
- Click the Import tab from the top menu.
- Select the Choose File button, and choose the SQL file you previously saved. The file’s name will appear on the right side of the button.
- The other fields of this page are as they are, then hit the Go button near the bottom once you’re finished.
- Your database is currently being imported. You’ll see a loading wheel till the import is complete, and then you’ll be presented with a new screen that reads ‘Import is completed’ across the top.
6. Modify your Website’s files
Your database is now safely moved to your new host Now is the time to move your files.
However, before we can accomplish this, we need to take an additional procedure for websites that include databases and files.
In essence, you must modify the code in specific files to link them with the new database, specifically its name and the user name you have created, and the password.
7. Upload the files of your website
Once everything is synced, We can now proceed to upload your website’s data to the new host. We’ll do this via FTP.
8. Test Your Website
Now is the time to test your site. When you move further, you’ll not be able to conduct this test in a safe, private, risk-free’ setting that is, all errors you make will be visible all over the internet for everyone to see!
Every host handles this differently – some hosts will create a complete staging environment, while others will create an interim URL. So it’s a nice idea to return to talk with their support team or look up relevant content (try searching for ‘testing URL’ and then [your hosting provider to find).
9. Change Your DNS Settings
Now you’re at the last step in transferring your site to a new host by making changes to your DNS settings so that they forward your domain’s DNS settings to the new host.
DNS refers to Domain Name System. It is essentially a translation of IP addresses (random choice of numbers that are difficult to track) into a domain name (not-so-random choice of letters that are easier for people to keep track of).
We’ve put together a comprehensive DNS guide that you can read, but you don’t have to be aware of how they function to affect these changes.
The process is different depending on the country’s location where your domain’s registration is. What you’ll require in all situations, however, you will need the nameservers for the new host.
They usually appear in the welcome emails you receive via them. If they don’t do that, you might be able to locate them within the General Information part of your dashboard in cPanel.
There’ll be a primary as well as a secondary nameserver. You’re trying to find something similar to the following: ‘fg4531. [yourhostingprovider].com’.
If you’ve already got them, go to the steps to change the DNS of your website using the current provider of your domain name. If you request it, you’ll need to wait anywhere from an hour and all day long until the transfer is completed.
This is when there’s a chance of experiencing some time of downtime, so it’s best practice to do this in a calmer period for your site. You should also provide your users with an alert in advance.