Tag: website migration

  • How to Migrate Your Website to a New Host Without Downtime (Step-by-Step)

    Is your current web host slow, unreliable, or charging too much for what you’re getting? Switching to a better hosting provider is one of the best things you can do for your website’s performance and your sanity — but many website owners are afraid of the process, fearing data loss or prolonged downtime.

    The good news: migrating your website correctly results in zero downtime. This step-by-step guide shows you exactly how to do it.

    When Should You Switch Web Hosts?

    Migrating your website takes time and effort, so it’s worth being sure it’s the right move. Consider switching if:

    • Your site is slow: Page load times above 3 seconds are costing you visitors and Google rankings
    • Frequent downtime: You’re experiencing outages more than a few hours per year
    • Poor support: Tickets go unanswered for days or you get canned responses that don’t solve your problem
    • Overpaying: Renewal prices jumped dramatically or you’re paying for resources you don’t use
    • Running out of resources: Your site is outgrowing shared hosting and you need more CPU, RAM, or storage
    • Security issues: Your site has been hacked repeatedly and your host offers no meaningful help

    Before You Start: Pre-Migration Checklist

    Before touching anything, complete these preparatory steps:

    1. Backup your entire website — Files and database. Do this even if your host does automatic backups.
    2. Document your current settings — Note your PHP version, MySQL version, any server-side configurations
    3. List all email accounts — Domain-based email addresses will need to be recreated on the new host
    4. Note your DNS records — Write down your MX, A, CNAME, and TXT records before any changes
    5. Sign up for new hosting — Complete payment and account setup before starting the migration

    Step 1: Back Up Your Website

    Option A: Backup via cPanel (Recommended)

    1. Log in to cPanel on your current host
    2. Go to Backup Wizard or Backup
    3. Click Download a Full Website Backup
    4. Wait for the backup to generate (may take 10–60 minutes for large sites)
    5. Download the .tar.gz backup file to your computer

    Option B: Backup WordPress with a Plugin

    Install and activate the UpdraftPlus plugin, run a backup, and download both the files backup and database backup to your computer.

    Step 2: Set Up Your New Hosting Account

    Log in to your new hosting account’s cPanel and complete initial setup:

    • Add your domain name (or set it up as an addon domain if it’s not the primary)
    • Note the new server’s nameservers (e.g., ns1.hostraha.com, ns2.hostraha.com)
    • Make note of your new server’s IP address

    Step 3: Upload Your Website Files to the New Host

    Option A: Restore from cPanel Backup

    1. Log in to new host’s cPanel
    2. Go to Backup Wizard → Restore
    3. Upload your backup file
    4. Wait for restoration to complete

    Option B: Manual FTP Upload

    1. Download and install FileZilla (free FTP client)
    2. Connect to your new host using FTP credentials from cPanel
    3. Upload all your website files to the public_html folder

    Step 4: Migrate Your Database

    For WordPress and most dynamic websites, you also need to migrate the database:

    1. On your old host: Go to cPanel → phpMyAdmin → Select your database → Click Export → Choose “Quick” → Format: SQL → Click Go. Save the .sql file.
    2. On your new host: Go to cPanel → MySQL Databases → Create a new database and database user → Assign the user to the database with All Privileges.
    3. Go to phpMyAdmin on new host → Select the new database → Click Import → Upload your .sql file → Click Go.
    4. Update your WordPress wp-config.php file with the new database name, username, and password.

    Step 5: Test Your Website on the New Host (Before Changing DNS)

    This is the most important step for zero-downtime migration. Before changing your DNS and pointing your domain to the new host, verify everything works correctly using a temporary URL or by editing your computer’s hosts file.

    Testing via Hosts File

    On your computer (not your phone), you can temporarily make your domain point to the new server’s IP address. This lets you see the site on the new server while everyone else still sees the old one.

    1. Find your new server’s IP address (in cPanel or from your hosting welcome email)
    2. Open your hosts file: On Windows: C:WindowsSystem32driverstchosts | On Mac/Linux: /etc/hosts
    3. Add a line: NEW.SERVER.IP.ADDRESS yourdomain.com www.yourdomain.com
    4. Save the file and clear your browser cache
    5. Visit yourdomain.com — you’ll see the new server’s version

    Check that all pages load, contact forms work, images display, and if you have WooCommerce, that you can add items to cart and proceed to checkout.

    Step 6: Update DNS and Go Live

    Once you’ve confirmed the new host looks and works correctly:

    1. Log in to your domain registrar (where you registered your domain)
    2. Update the nameservers to your new host’s nameservers
    3. Or update just the A record to point to your new server’s IP
    4. Save the changes

    DNS propagation takes anywhere from a few minutes to 48 hours, though most updates are visible within 1–4 hours. During this window, some visitors will see the old host, others will see the new one — but both are serving the same content, so there’s no downtime or broken experience.

    Step 7: Verify, Then Cancel Your Old Hosting

    Wait at least 48–72 hours after updating DNS before cancelling your old hosting plan. This ensures full propagation and gives you a fallback if something unexpected arises.

    After confirming your new host is serving all traffic correctly, cancel your old hosting account and remove the entry from your computer’s hosts file.

    Don’t Want to Do It Yourself? Free Migration Available

    If the technical steps above feel overwhelming, you don’t have to do it alone. Hostraha offers free website migration — our technical team handles the entire process for you, from backup to DNS update, with zero downtime guaranteed.

    We migrate WordPress sites, cPanel-based sites, Joomla, Drupal, and static HTML websites. Just open a support ticket and we’ll coordinate the migration at a time that works for you.

    Request Free Migration →