50% off your first hosting order, applied in your cart, on our upgraded infrastructure! Ends in: View Plans →
Türkiye · France · Northern Cyprus05372609483
Hosting & WordPress

How to Migrate a WordPress Site to Another Host Without Downtime

  • 19 November 2026
  • 4 min read
Contents
    Share this post

    Moving a WordPress site to another host means copying three things: the files, the database, and the DNS record that decides which server your domain points to. Get the order right and visitors see no downtime and no email is lost. This guide covers the move in eight steps, from preparation to the DNS switch. If you are moving to Fiberserver, eligible cPanel accounts can use our free website migration; the steps below are for those who want to do it themselves or understand the process.

    1. Take inventory

    Write down what has to move: the size of the site files, the database name, the PHP version in use, email accounts on the domain, scheduled tasks (cron) and where the DNS records are managed. What goes wrong in most migrations is a forgotten mailbox or subdomain.

    2. Lower the DNS TTL

    A day or two before the move, lower the TTL of your domain's A record to 300 seconds. On the day you change DNS, visitors then reach the new server within minutes.

    3. Take a backup

    • cPanel to cPanel: Create a full account backup with the Backup tool in the old account. Files, databases and email accounts come in one archive.
    • By hand: Download the site folder (especially wp-content) with FTP or File Manager, and export the database from phpMyAdmin as an .sql file.
    • With a plugin: Migration plugins speed things up on small sites; on large sites you may hit file size limits.

    4. Set up the files and database in the new account

    1. Create a new database and user in cPanel and give the user all privileges.
    2. Import the .sql file in phpMyAdmin.
    3. Upload the files to the public_html folder.
    4. Update DB_NAME, DB_USER and DB_PASSWORD in wp-config.php with the new details. On most hosts DB_HOST stays localhost.

    Set the PHP version to the same one as on the old server or to a newer, supported version; our PHP 8.2 end-of-life news lists which versions still receive updates.

    5. Test without changing DNS

    Add the new server's IP address together with your domain name to the hosts file on your computer. Only your computer opens the site from the new server; everyone else still sees the old one. Try the home page, the admin area, the contact form and, if you run a store, the cart and checkout. Remove the hosts line when you are done.

    6. Prepare the email accounts

    If your email lives in the hosting account, create the same addresses in the new account. A full account backup brings the mailboxes with their contents. If you move by hand, you can copy old mailboxes to the new ones over IMAP with a mail client. If your email is with another service, leave the MX records alone.

    7. Point DNS and enable SSL

    Change the A record of your domain to the new server IP, or change the nameservers. Once the domain points to the new server, the free SSL certificate can be issued; then open the site over HTTPS and check the padlock. To avoid a gap between the copy and new posts or orders, switch at the site's quietest hour and do not add content during the move.

    8. Check after the switch

    • Open Settings > Permalinks and save; this rebuilds the rewrite rules.
    • Configure your cache plugin for the new server. On LiteSpeed servers, follow our LiteSpeed Cache settings guide.
    • Test that form and order emails arrive.
    • Keep the old hosting account for at least a week, so you can go back for a missing file or email.

    Common errors

    SymptomLikely causeFix
    "Error establishing a database connection"Wrong details in wp-config.phpCheck the database name, user and password
    Blank page or 500 errorPHP version or a missing PHP extensionSet the PHP version and extensions in cPanel
    Images missing, no padlockOld http addresses in the pagesUpdate the addresses to https
    Email not arrivingMX record still on the old server, or mailbox not createdCheck the MX record and the accounts
    Admin area goes back to the old siteDNS has not propagated yetWait for the TTL, clear the browser cache

    If the domain name changes too

    If you move the site to a new domain name, the old addresses in the database have to be replaced as well. Do not do this by hand: WordPress stores some settings in a special format, and a plain find-and-replace breaks those records. Use WP-CLI's wp search-replace command or a plugin built for it. If you also want to change the company your domain is registered with, see the domain transfer guide.

    To host the site on a fast platform after the move, look at our WordPress hosting and cPanel web hosting plans, and ask our support team whether your account is eligible for migration.

    Comments0

    No Comments Yet

    Be the first to share your thoughts.

    Join the Discussion

    Please sign in or sign up to leave a comment.

    Never Miss a Post

    Get our latest tutorials, guides and product news in your inbox.

    You're subscribed to our newsletter.