How to Migrate Your Website to a New Host: Step-by-Step

Migrating a website to a new host is a copy, test, switch job: you build a complete copy of the site on the new server, prove it works under a temporary address, and only then point your domain at it. Done in that order, visitors never see a broken page, and the old host stays available as your safety net. The parts that go wrong are almost never the files. They are email, SSL, DNS records someone deleted by accident and a database that changed after you copied it.
This guide is written for sysadmins, developers, startups and small businesses in South Africa who are moving a site to a new cPanel account or a VPS. If you want a server where you control the resources and a panel you operate yourself, Joodle’s Linux VPS starts from R79.99 per month and is hosted in South African data centres. The steps below work whichever platform you are moving to.
TL;DR
Build the new environment first, then copy, test under a temporary address, and switch DNS last.
Keep a full backup (files and database) on your own computer, not only on the old or new host.
Plan email before anything else, and never touch MX, SPF, DKIM or DMARC records during a website move.
Issue the SSL certificate on the new host before the switch, and force HTTPS afterwards.
Keep the old host running for at least a week, and write your rollback steps down before you launch.
Table of Contents
Before you touch anything: the preparation list
A migration is mostly decided before the first file is copied. Gather this first:
Logins for the current host, the domain registrar and the site’s admin area. People often discover mid-move that the registrar login belongs to a former employee or a web designer.
A list of every email account in use, with sizes and where each is read (webmail, Outlook, a phone).
A list of integrations: payment gateways, CRM or newsletter links, API keys tied to the server’s IP address, and cron jobs (scheduled tasks).
A launch window. A South African migration guide recommends a quiet morning early in the week rather than a Friday afternoon, so that if something fails you have working days to fix it.
Then take a full backup of the files and the database and download it to your own computer. The same guide stresses that the copy must not live only on the old or new host. If you have no backup routine at all, set one up before you migrate. Joodle’s help article on backing up a website in cPanel walks through the Backup Wizard, and Cloud backup, from R59.99 per month, keeps a copy of servers, PCs and virtual machines off the machine itself.
Step 1: Set up the new host before you cancel anything
The golden rule is to run both hosts in parallel for a few days. That means your new account or server must be ready and paid for while the old one is still live. The same South African guide calls paying two hosting bills for one month the cheapest insurance you can buy, and it is hard to disagree: a month of overlap costs far less than a day of lost orders.
What you set up depends on where you are going:
A cPanel hosting account. Create the account, note the server IP and the temporary access details.
A VPS. Install the operating system, the web server (Apache or Nginx), PHP or your runtime, and a database server at versions matching the old host. A mismatch, for example PHP 7.4 on the old host and 8.3 on the new one, is a classic cause of a white screen after migration.
On a VPS you size the server for the site you have, not the one you might have in three years. On a Joodle VPS you manage resources from a self-service control panel and scale them as traffic changes, and 1-click application installs cover common stacks, so you are not locked into a oversized plan on day one. Joodle’s support runs 24 hours a day, which matters when your migration window falls at 05:00 on a Tuesday.
Step 2: Copy the files
For a small site, the easiest route is to download the site’s archive from the old host and upload it to the new web root. In cPanel, the File Manager upload guide shows how to upload and extract an archive in the right folder. On a VPS, use rsync or scp over SSH, which preserves timestamps and copes with large media libraries by resuming where it stopped.
Where this goes wrong:
File permissions. The South African guide names permissions as the usual reason uploads fail after a move. Directories are typically 755 and files 644, and the files must be owned by the user the web server or PHP process runs as.
Hidden files. .htaccess and similar dotfiles are skipped by some download tools. Check that they arrived, because redirects and rewrite rules live there.
Absolute paths. Anything hardcoded to the old server’s directory path will break quietly.
Step 3: Move the database and verify it
Export the database from the old host (phpMyAdmin’s Export tab, or mysqldump on the command line), create an empty database and user on the new host, and import the file. Use the same character set (usually utf8mb4) on both sides, or accented characters will turn into question marks.
Then verify, because a database import can fail halfway and still look finished:
Compare table counts and row counts for your biggest tables on both servers.
Open the site and check that dynamic content (products, posts, users) is present.
Check the import log for errors rather than assuming silence means success.
The timing problem is that the database keeps changing on the live site while you work. A South African VPS guide advises pausing orders and form submissions during the cutover so nothing lands on the old server after the database copy. For a shop, plan a short maintenance window: do a final export and import just before the DNS switch.
If the site runs WordPress
WordPress adds a few specific steps, but the shape is identical:
Build a fresh wp-config.php on the new server with the new database credentials and paths, instead of copying the old file, and carry over the table prefix so WordPress finds its tables.
Search the database for the old URL if the domain or protocol changes, using a tool that handles serialised data safely. Hardcoded URLs lingering in the database are one of the things that break during a move.
Switch off scheduled tasks and automatic updates on the unvisited copy so it does not publish or update things while you test.
Plugins that package a site into a single archive can save time, but they do the same copy of files and database described above, so knowing the manual steps lets you fix a failure when the plugin stalls.
If it is not WordPress
Custom PHP, Node, Python or static sites follow the same logic. What changes is the checklist: environment variables and .env files, the runtime version, background workers, and any build step. Write a list of every service the application talks to, then confirm each one accepts connections from the new server’s IP address.
Step 4: Sort out SSL before the switch
A certificate on the old host does not follow the site. The new host needs its own, and it should be issued and installed before visitors arrive, with HTTPS forced afterwards. Otherwise the first people to reach the new server see a browser security warning.
If you are on cPanel, Joodle’s guide to checking and fixing your SSL certificate in cPanel shows what to look for when a certificate does not apply. If your business needs an organisation-validated or longer-lived certificate, SSL certificates start from R299.99. Note that some certificate types can only be validated once the domain points at the server, so allow for that in your timeline.
Step 5: Test under a temporary address
Do not switch DNS and hope. Test the new copy first, using either a temporary URL from the host or a hosts-file entry on your computer that maps your real domain to the new server’s IP address. The hosts-file method is the better one because the site then behaves exactly as it will in production: same domain, same redirects, same certificate logic. Remember to remove the entry afterwards, or you will keep seeing the new server while everyone else sees the old one.
Work through this list:
The homepage and several inner pages.
Images and downloads (permissions again).
Contact and quote forms, including whether the email actually arrives.
Search, login and the admin dashboard.
The checkout, with a real test order if you run a shop.
Scheduled jobs and any integration that calls out to another service.
Step 6: Handle email first, not last
Email is what breaks, and it is the part owners notice fastest. The key fact: moving a website does not require moving email, and the safest moves leave email exactly where it is. A guide to changing DNS safely says a website move should leave the MX, SPF, DKIM and DMARC records untouched, so that only the A or AAAA record for the bare domain and the CNAME for www are edited.

The risk is hidden. Broken SPF or DKIM records do not bounce your mail, they quietly send it to recipients’ spam folders. So after any DNS change, send test messages to a few different providers and check where they land.
If your email currently lives on the same hosting account you are leaving, you have two choices: recreate the mailboxes on the new host and copy the mail across, or separate email from hosting altogether. The South African guide argues the second is worth doing during a migration, because a hosting problem then never takes your communications down. Joodle’s article on moving business email safely covers the process, and business email hosting is available from R49.99.
Step 7: Switch DNS
DNS (the Domain Name System) is the directory that turns your domain into a server address. Each record carries a TTL, or time to live, which tells other networks how long to remember the answer. The cutover is smoother if you lower the TTL a day before, as the VPS guide above suggests, so the old answer expires quickly.
The discipline that protects you:
Export or screenshot every existing DNS record before changing anything. The DNS guide’s central rule is to capture a complete copy first. Most damage comes not from the wrong edit but from deleting records you did not recognise while you were in the panel. Each one is probably holding up something that still works.
Change only what the move needs. For a website move, that is the A/AAAA record and the www CNAME.
Choose between two methods. Editing records at your current DNS provider is fast. Changing nameservers moves all DNS to a new provider, goes through the registry and is slower: the DNS guide cites up to 24 hours for one major provider and up to 48 for another. If you change nameservers, recreate every existing record at the new provider first, especially the mail records.
Joodle’s help article on changing nameservers and DNS records for your domain shows the fields involved. If your domain is a .co.za that you want to manage alongside your hosting, domain registration is available too.
While the change spreads, some visitors will reach the old server and some the new one. That is why you keep the old site live and, for shops and forms, why you paused writes in step 3.
Step 8: Write the rollback plan before you launch
A rollback plan decided in a panic is a bad plan. A WordPress migration checklist suggests agreeing objective triggers beforehand, such as widespread 500 errors, failed checkout or logins, an incomplete database import or a missing media library, and writing the sequence down:
Stop writes to the new server.
Restore the original DNS records (this is why you saved them).
Confirm the old server is still up.
Restore the database if it changed.
Verify the old site.
Reopen traffic.
This only works if the old host is still running and your downloaded backup is intact, so do not cancel anything in the first week.
After the move: what to check
For the first few days, watch the site and email. The South African guide recommends keeping the old hosting for at least a week, checking Google Search Console for crawl errors and confirming that the site is still indexed properly. Also:
Search your site for mixed-content warnings (HTTP resources on HTTPS pages).
Confirm scheduled jobs ran on the new server.
Compare page speed with the old host.
Take one final backup from the old host before cancelling, and store it with your other archives.
Cancelling a domain, host or mailbox too early is a common cause of avoidable data loss, so cancel in this order only after everything is confirmed: old hosting last, domain never unless you mean to.
Set up a recurring backup on the new server straight away. Joodle’s guide to offsite server backup explains how to set one up and test a restore, which is the only real proof a backup works.
Why a VPS in South Africa suits a migration
A migration is the best moment to fix what frustrated you about the old host. Joodle pairs a self-service control panel and flexible VPS resources with 24-hour support, with infrastructure in South African data centres. Linux VPS starts from R79.99 per month and Windows VPS from R449.99 per month, so you can match the platform to your stack and adjust resources as the site grows. If you would rather have the technical work handled for you, Managed IT is available from R499 per month per user.

If you want to read before you buy, the Joodle Help Centre collects the VPS, hosting, domain and email guides used in this article, and what to demand from secure website hosting is a useful checklist for choosing the destination.
FAQ
How long does it take to migrate a website?
The copying of a small site takes an hour or two. The surrounding work, preparing the new host, testing and waiting for DNS to settle, takes days. Plan for a week of parallel running, and allow up to 24 to 48 hours if you change nameservers.
Will I lose email if I change hosts?
Not if you plan it first. A website move only needs the A/AAAA and www records changed, and the mail records should stay untouched. If your mailboxes live on the old hosting account, move them, or separate email from hosting, before you cancel anything.
Will my site go down during the migration?
Not if you build and test on the new host first, then switch DNS. For a short period some visitors see the old server and some the new, so pause orders and form submissions around the final database copy to avoid losing data.
When can I cancel the old host?
After at least a week of running on the new one, with email checked, Search Console clean and a final backup downloaded to your own computer.
Sources
Recommended


