Switching web hosting providers is often viewed as a stressful, nerve-wracking ordeal. Business owners fear lost sales, broken databases, missing emails, and hours of dreaded website downtime. But the truth is simple: with the correct migration strategy, website downtime is 100% preventable.
In this comprehensive guide, we walk you through the exact zero-downtime migration blueprint used by system administrators to seamlessly move WordPress and cPanel websites to BestHosting BD.
The Secret to Zero Downtime: Never Cancel Your Old Host First!
The number one mistake website owners make is canceling their old hosting subscription before the new server is live and fully verified. To achieve zero downtime:
- Keep your old hosting account fully active throughout the entire migration.
- Mirror your entire website on the new host first.
- Verify functionality before touching your domain’s DNS.
- Allow DNS propagation to seamlessly transition visitors without a single second of service disruption.
Step 1: Lower Your Domain’s DNS TTL (Time To Live)
DNS records are cached by internet service providers (ISPs) worldwide based on their TTL (Time To Live) value. If your TTL is set to 86400 seconds (24 hours), it can take a full day for visitors to recognize your new server.
- 48 hours before migration, log in to your domain registrar’s DNS manager.
- Find your
A Recordand reduce the TTL to 300 seconds (5 minutes). - This ensures that when you finally switch servers in Step 5, global visitors will transition almost instantly.
Step 2: Export Your Files and Database
Method A: Full cPanel Backup (Recommended for cPanel Hosts)
If your old host provides standard cPanel access:
- Log in to cPanel → Backup Wizard → Full Backup.
- Download the
.tar.gzarchive to your computer. - Our support engineers can restore this full backup directly onto your BestHosting cPanel in minutes, restoring all files, databases, email accounts, and forwarders automatically!
Method B: Manual WordPress Migration
- Files: Use File Manager or FTP to compress and download the entire
public_htmldirectory. - Database: Open phpMyAdmin, select your website database, click Export → Quick → SQL format, and save the
.sqlfile.
Step 3: Upload and Configure on Your New Host
- Log in to your new BestHosting BD cPanel.
- Upload and extract your
public_htmlfiles. - Navigate to MySQL Databases: create a new database, create a database user, assign all privileges, and note the credentials.
- Open phpMyAdmin and import your
.sqldatabase file. - Edit
wp-config.phpin File Manager and updateDB_NAME,DB_USER, andDB_PASSWORDto match your new database credentials.
Step 4: Test Your Website BEFORE Changing DNS (The Hosts File Trick)
How can you be 100% certain your website works perfectly on the new server before pointing your domain?
By temporarily modifying your computer’s local hosts file, you can preview the website as if the DNS has already switched:
- On Windows: Open Notepad as Administrator, open
C:\Windows\System32\drivers\etc\hosts. - Add a line:
[Your_New_Server_IP] yourdomain.com www.yourdomain.com - Save the file and load your site in an incognito window. You are now browsing directly from your new server! Test login, forms, and product pages.
- Once verified, remove the line from your hosts file.
Step 5: Switch Nameservers and Go Live
Now that your new server is verified and ready:
- Log in to your domain registrar.
- Update your nameservers to BestHosting BD:
ns1.besthosting.bdandns2.besthosting.bd. - Because you lowered your TTL in Step 1, visitors will smoothly shift to the new high-speed server without ever seeing an error screen.
Let Our Experts Migrate Your Site for Free!
Don’t want to deal with technical files and database exports? BestHosting BD includes 100% Free White-Glove Migration with all hosting plans. Our senior migration engineers handle the entire process with guaranteed zero downtime.
