How to Transfer Website Hosting Without Going Offline
To transfer website hosting without downtime, the rule is simple: keep the old site running, build a complete copy on the new server, test everything, and only then change the DNS. Until that happens, your visitors keep seeing the site as usual.
Migrations rarely fail because of copying files. They fail because of rushing: canceling the old plan too early, forgetting the database, or changing the DNS before testing. Following the order below helps you avoid these mistakes.
The summary of the process:
- Gather access details and an inventory of what exists today.
- Choose the new hosting and check compatibility.
- Make a full backup.
- Upload the files and import the database.
- Test the copy without touching the DNS.
- Change the DNS and monitor.
- Cancel the old plan only at the end.
Before You Start: What You Need on Hand
Gather everything before opening any panel. This prevents you from stopping midway to look for a password.
- Access to your current hosting: control panel (cPanel or another), FTP and, if possible, SSH.
- Access to your domain registrar: this is where you change nameservers and DNS records.
- List of files and folders: main site, subdomains, add-on domains.
- Databases: name, user and which site uses each one.
- Email accounts: which exist and whether any forwarders are set up.
- PHP version and extensions: note what the site uses today.
- Scheduled tasks (cron jobs): many sites depend on them, and almost no one remembers them.
If your site is WordPress or an online store, also note the critical plugins. They will help you check compatibility in the next step.
Step 1: Choose the New Host and Check Compatibility
Before migrating, confirm that the destination can handle what your site needs: disk space, PHP version, MySQL/MariaDB databases, number of email accounts, and SSL certificate. If the site runs a specific PHP version, check whether it is available on the new plan.
When the source and destination both use cPanel, the migration is much simpler, because the folder structure, databases and emails follow the same pattern. For that reason, cPanel website hosting with free SSL is often a good destination for those already using a similar panel. If you want to see the general options, the website hosting page lists what HostMF offers.
Points to check on the new plan:
- Bandwidth, email and SSL: what is included and what is charged separately.
- Disk type: NVMe SSD helps the site respond faster.
- Protection against attacks, such as Anti-DDoS.
- Support in Portuguese and English, which matters if something breaks during the switch.
- Contract terms: with no lock-in contract, you can test without being tied down.
Step 2: Make a Full Backup of the Current Site
A backup is your safety net. Make one before any change and keep a copy outside the old server, on your computer or in cloud storage.
What to include:
- Files: the site folder (usually
public_html) and subfolders of other domains. - Database: export it in SQL format through phpMyAdmin or generate it from the panel.
- Emails: accounts, filters and, if you want to keep old messages, the inboxes.
- Settings:
.htaccess, configuration files and the list of cron jobs.
In cPanel, the backup tool generates a complete copy of the account. After downloading it, open the file and check that it is not empty or corrupted. A backup nobody has tested is not a guarantee.
Step 3: Upload Files and Import the Database
There are two paths: the migration tool, which is faster when both sides use cPanel, and the manual copy, which works in any scenario.
Transferring a cPanel Site with the Migration Tool
To transfer a cPanel site to another cPanel server, the simplest path is to use the full account backup and restore it on the destination. In many cases, the new host's support team will do this for you: just request the migration and provide the access details of the old server.
Advantages of this method:
- Files, databases, emails and subdomains move together.
- Less chance of forgetting something.
- Little technical work on your part.
After the restore, check that everything is there: folders, databases, email accounts and add-on domains.
Manual Migration: FTP, File Manager and phpMyAdmin
If the source does not use cPanel, or if you prefer to control each step, do it manually:
- Upload the files via FTP or the cPanel File Manager (compressing them into a .zip and extracting them on the destination is usually faster).
- Create the database and user in the new panel and link them with full privileges.
- Import the SQL file through phpMyAdmin.
- Update the site's configuration file with the new database name, user and password. In WordPress, this is
wp-config.php. - Review the
.htaccessfile and the PHP version in the new panel.
If the SQL file is too large for phpMyAdmin, split the file or ask support to import it from the command line.
Step 4: Test the Site on the New Server Before Changing the DNS
This is the step that separates a smooth migration from a headache. You need to see the site working on the new server before pointing the domain to it.
There are two ways to do this:
- Hosts file: on your computer, you map the domain to the new server's IP address. Only you see the new version, while the rest of the world stays on the old site.
- Temporary URL: many cPanel hosts offer a provisional address to test the account.
What to check:
- Home page and internal pages open without errors.
- Images, CSS and scripts load.
- Contact forms send messages.
- Login, member area and admin panel work.
- Cart and checkout, if it is an online store.
- Internal links do not point to old addresses.
Remember to remove the line from the hosts file after testing. Otherwise, you will keep seeing the new server even after the migration is finished, which can be confusing.
Step 5: Change the DNS and Avoid Downtime
With everything tested, it is time to point the domain to the new host. For anyone who wants to switch hosting without downtime, three precautions make a difference.
- Lower the TTL in advance. The TTL sets how long servers cache the old address. Reduce this value one or two days before the switch so the change spreads faster.
- Change the nameservers or the records. You can switch the domain's nameservers to those of the new host or, if you prefer to keep DNS where it is, simply change the A record to the new IP address.
- Keep the old server active. During propagation, some visitors still reach the old address. If it stays online, nobody sees an error.
Propagation can take from a few minutes to a few hours, and sometimes longer. Avoid making the switch during a peak sales period. A quiet late night or weekend is usually safer.
One important detail: you do not need to transfer the domain to change hosting. Hosting and domain registration are separate services, and you only need to point the DNS.
Emails and SSL: What Must Not Be Forgotten
These are the two items that most often catch people off guard after the switch.
Emails. If the domain uses email on the old host, recreate the accounts on the new server before changing the DNS. When you change the nameservers, the MX records change too. If the mailboxes do not exist on the destination, messages may be rejected or lost. If your email runs on another service, keep the MX records pointing to it.
SSL. The certificate from the old server does not move with the site. On the new server, it must be issued for the domain, and this usually only works after the DNS points there. On hosts that include free SSL, issuance is typically automatic. After propagation, open the site over https and check that no security warning appears.
Common Mistakes When Moving a Website to Another Host
When you move a website to another host, these are the most frequent mistakes. Use this as a checklist:
- Canceling the old hosting before propagation is complete.
- Forgetting to export and import the database.
- Using a PHP version that is incompatible with the site or its plugins.
- Leaving old paths in the configuration file.
- Changing the DNS without testing the copy first.
- Not recreating the email accounts on the destination.
- Ignoring the cache: clear the site, plugin and browser cache to see the real version.
- Not keeping a backup outside the old server.
If any item on this list describes what you are about to do, stop and fix it before continuing.
Final Post-Migration Checklist
For the 48 hours after the switch, keep a close eye on:
- The site opens on all devices and networks, with no certificate warnings.
- Forms submit, and emails arrive and send normally.
- Orders, logins and payments work.
- Traffic on the new server is showing up.
- The new host's automatic backups are active.
- DNS records are correct for all subdomains.
Only after confirming all of this should you cancel the old plan. If your project grows and needs more control or performance, it is worth looking at HostMF's VPS, website hosting and cPanel reseller plans, which let you grow without changing companies.
Conclusion: Your Next Step to Switch Hosting Safely
The order is what protects your site: inventory, backup, copy, test, DNS and, last of all, canceling the old plan. With this roadmap, how to transfer website hosting stops being a risk and becomes an organized task.
If you want a destination with cPanel, free SSL, no lock-in contract and 24/7 support in Portuguese and English to help with the migration, check out HostMF hosting and choose the plan that fits your project.