South African web hosting, domains, web design and SEO since 2009BlogHelp CentreClient area
Website Tips

How to Migrate Your Website to a New Host in South Africa

Migrate your website to a new host without losing email: back up, copy, test, lower TTL, switch DNS, then cancel the old plan. Step-by-step for SA owners.

How to Migrate Web Hosting (SA)
On this page

    To migrate a website to a new host, you back up the site and email, copy them to the new server, test the copy before anyone sees it, then point your domain's DNS at the new server and keep the old plan running until everything is confirmed. Done in that order, visitors and email barely notice the move. For a small site the copying takes an hour or two, and the DNS switch is the only moment anything changes for visitors.

    This guide walks through each step for a typical South African small business site on cPanel, including the part most guides skip: making sure your email records come across intact.

    Key takeaways

    • Order matters: back up, copy, test, then switch DNS. Never cancel the old host first.
    • Write down every DNS record before you start, especially MX, SPF and DKIM for email.
    • Lower the DNS TTL a day ahead so the switch takes effect quickly.
    • Moving hosting is not the same as transferring your domain; you can do one without the other.
    • Many hosts will move the site for you, so ask before you order. We will talk you through it if you contact us first.

    Why people switch hosting providers

    The usual reasons are a slow site, support that takes days to reply, a renewal price far higher than the sign-up price, or a plan the business has outgrown. Before you move, check the new host's renewal prices and extras, not just the first-month deal; our breakdown of hidden web hosting costs in South Africa lists the ones that catch people out. If you are still comparing providers, start with how to choose a web hosting provider.

    Hosting move vs domain transfer

    These are two separate jobs, and mixing them up causes most migration stress:

    Hosting migration Domain transfer
    What moves Website files, databases, mailboxes Who you pay to renew the domain (the registrar)
    What you change Nameservers or DNS records Registrar, via a transfer request
    Needed to switch hosts? Yes No, optional

    You can leave the domain where it is and only change where it points. If you also want to move the domain, do it after the hosting move has settled; our guide to transferring a .co.za or .com domain covers that process.

    Before you start: what you will need

    • Login for your current hosting control panel (usually cPanel)
    • Login for wherever your domain's DNS is managed (your current host, a registrar or Cloudflare)
    • Your new hosting account, active and ready
    • A list of every mailbox and its password, or a plan to reset them
    • A screenshot or export of all current DNS records

    Step 1: Record your current DNS records

    Open the DNS zone at your current provider and copy every record: A, CNAME, MX, TXT (SPF, DKIM, DMARC, Google or Microsoft verification) and any SRV records. If your email is hosted elsewhere, such as Google Workspace or Microsoft 365, those MX and TXT records must be recreated exactly at the new host or mail will stop. This one step prevents most "my email broke after moving" problems.

    Step 2: Back up everything

    In your current cPanel, use Backup or the Backup Wizard to download a full account backup. It contains your files, databases, mailboxes and many settings. Save it to your own computer or cloud storage. cPanel itself cannot automatically restore a full backup file; that is done by the host in WHM, which is why the new host does the restore (or you extract the file and upload what you need). For WordPress you can also make a portable copy with a migration plugin, which is often easier to restore on a different host.

    Step 3: Copy the site to the new server

    There are three common routes:

    • Ask the new host: many will restore a cPanel backup or copy the site for you.
    • Full cPanel backup restore: the new host restores your backup file into the new account, mailboxes included.
    • Manual move: upload files with File Manager or FTP, import the database in phpMyAdmin, then update wp-config.php with the new database name, user and password.

    The official WordPress guide to migrating WordPress explains the manual route, including what to do if the domain or folder changes at the same time.

    Step 4: Test the new copy before switching

    Before touching DNS, preview the site on the new server. The simplest way is a temporary hosts file entry on your own computer that points your domain at the new server's IP address. You then see the new copy while everyone else still sees the old one. Click through key pages, log in to WordPress, and submit a test form.

    Step 5: Lower the TTL, then switch DNS

    TTL (time to live) tells other DNS servers how long to cache your records. Google advises lowering it well ahead of a move, so do it at least a day before, and ideally a few days. A short value such as 300 seconds works where your DNS provider allows. Then either change the nameservers at your registrar to the new host's, or keep your current DNS provider and update the A record (and any CNAMEs) to the new server's IP. Recreate every record you noted in step 1 at the new DNS provider before you change nameservers.

    Changes usually take effect within a few hours, but some networks can hold old records for longer, so allow a day or two. During that window some visitors reach the old server and some the new, which is why both copies must match. Our help article on how DNS propagation works explains the delay.

    Step 6: Verify everything after the switch

    • All main pages load, with no mixed-content warnings
    • Contact, quote and checkout forms send and arrive
    • Mail sends and receives on every mailbox, on phone and desktop
    • The SSL padlock shows on the domain and www version
    • Payment gateways, booking tools and analytics still connect
    • Search Console shows no spike in crawl errors over the next week

    Google treats a host change with the same URLs as a simple infrastructure move. Its guidance on moving a site without URL changes recommends keeping the old server running for a while and watching crawl stats, which matches the next step.

    Step 7: Keep the old hosting active for a while

    Do not cancel the old plan the day you switch. Keep it for at least a week, and until you have checked that no mail is still arriving there. If your old plan renews soon, ask about a monthly extension rather than renewing for a year.

    Will I lose data or email when I migrate?

    Not if you follow the order above. Nothing is deleted from the old host until the new one is confirmed working, so you always have a fallback. Email is the part that needs care: mailboxes have to be copied, and the MX, SPF and DKIM records have to be recreated before the switch. If mailboxes are copied the day before DNS changes, anything that arrives at the old server in between can be moved across afterwards with an IMAP sync, or simply read in the old webmail until it stops.

    Moving to Web Design Hosting SA

    You can move an existing website and email onto our cPanel hosting plans. The steps are in our help article on migrating your website, and if you would rather not do it yourself, contact us before you order and we will talk you through it. Our servers run LiteSpeed, CloudLinux and Imunify360, with free Let's Encrypt SSL and 24/7 support tickets.

    A sample migration-day timeline

    Here is a realistic plan for a small business site with email, switching on a quiet evening. Adjust the days to suit you.

    WhenWhat you do
    Two or three days beforeRecord all DNS records, lower the TTL, and ask the new host to copy the site and mailboxes.
    Day beforePreview the new copy with a hosts file entry. Test pages, forms and one mailbox login. Tell staff when email may briefly look different.
    Switch eveningFreeze content edits, take a last backup, then change the A record or nameservers. Recreate MX, SPF, DKIM and DMARC at the new DNS provider first.
    Same nightSend a test email to and from every mailbox, on phone and desktop, including one message from an outside address such as Gmail.
    Next morningRe-check forms, checkout, SSL on the www and non-www versions, and look for mail still landing on the old server.
    After a weekIf the old server sees no traffic and no mail, cancel the old plan.

    Quick recap

    • Record DNS records first, especially email ones
    • Back up, copy, and test on the new server before switching
    • Lower TTL, then change nameservers or the A record
    • Check pages, forms, email and SSL after the move
    • Keep the old host for at least a week before cancelling

    Frequently Asked Questions

    Will my website go down during migration?

    Usually not noticeably. Because the new copy is tested before DNS changes and the old server keeps running, visitors reach one working copy or the other. Sites that take orders or bookings should freeze changes during the switch.

    How long does a website migration take?

    Copying a small business site usually takes an hour or two. DNS changes typically spread within a few hours, but allow up to 48 hours before judging the result.

    Is website migration difficult?

    The manual route is technical, but most hosts will restore a cPanel backup or move the site for you. Your main job is giving access and testing the result.

    Will I lose my emails when I change hosts?

    Not when mailboxes are copied and the email DNS records are recreated before the switch. Keep the old host active until no new mail is arriving there.

    Do I need to transfer my domain to change hosts?

    No. You only need to point the domain at the new server. A registrar transfer is optional and best done after the hosting move.

    Sources

    Web Design Hosting SA team

    Web Design Hosting SA

    Our guides are written and checked by the Web Design Hosting SA team, who have built and hosted websites for South African businesses since 2009. Every price and fact is checked against our own plans or a primary source before publishing. Read how we write and check our guides.

    Web Design Hosting SA has hosted and built websites for South African businesses since 2009. Prices in our guides come from our live price list and are checked when a guide is updated. How we write our guides. Spotted something out of date? Tell us.

    Not sure which option is right for you?

    Tell us what you need and we will recommend a package, with a clear quote. No pressure and no jargon.