The thought of moving your site to a new server can make your stomach drop. One wrong step with your database or DNS records could take your shop offline, drop your search rankings, or lose customer orders while you sleep.
You do not have to gamble with your traffic. When you migrate website to new host infrastructure, following a structured process ensures zero downtime and keeps your files completely intact. Here is the exact blueprint we use on our support desk to move sites safely.
Short answer: To migrate website to new host servers without downtime, back up your site files and database first. Next, upload them to the new server and test using your local hosts file. Finally, lower your DNS TTL, update your domain nameservers, and verify your SSL certificate before shutting down your old host.
Key takeaways
- Always test your site on the new server using your computer's local hosts file before updating DNS records.
- Changing web hosts does not hurt SEO rankings as long as your URLs, site structure, and uptime stay intact.
- Lower your DNS TTL to 300 seconds 24 hours before migration to speed up global propagation.
- Keep your old web hosting active for a few days after moving to capture any delayed email or traffic.
Phase 1: Pre-Migration Planning and Preparation
Successful site moves happen long before you move a single file or change a domain setting. Spending twenty minutes auditing your current setup prevents missing databases, lost email accounts, or sudden downtime later.
Work through this preparation checklist before touching any server files:
- Audit your site files, databases, and email: Log into your current host and check your storage usage (in cPanel, go to Files → Disk Usage). Write down your active database names, total file size, and every email account tied to your domain so nothing gets left behind.
- Lower your DNS TTL to 300 seconds: Sign into your DNS management portal 24 to 48 hours before the move. Change the TTL (Time To Live) on your domain's main A record to 300 seconds (5 minutes). This tells internet routers to check for updated IP addresses every five minutes instead of saving the old server IP for a full day.
- Select matching server specs: Choose a target host plan that comfortably handles your actual database and resource demands. If an e-commerce site uses 2 GB of RAM and 20 GB of NVMe storage, putting it on a basic 512 MB starter plan will trigger memory limit errors immediately after the move. If you're comparing server setups, read our guide on what kind of hosting to choose for your website.
Phase 2: Complete Backup of Site Files and Database
Before you touch anything on your new server, you need a clean copy of your entire site. Creating a fresh manual backup guarantees you will not lose a single file or customer record if something breaks during the move.
- Download your site files: Log into your current control panel and open cPanel → Files → File Manager. Go to your root directory (usually
public_html), select all files, compress them into a.ziparchive, and download the archive to your computer. Alternatively, connect via SFTP using FileZilla and download the full directory directly. - Export your MySQL database: Go to cPanel → Databases → phpMyAdmin. Select your site database from the left menu, click the Export tab at the top, select the Quick export method with SQL format, and click Go to save the
.sqlfile. If you prefer command line access over SSH, runmysqldump -u db_user -p db_name > site_backup.sql. - Capture last-minute dynamic data: If you run an active store with constant sales or a blog with new comments, take a fresh database snapshot right before pointing traffic to the new server. Putting your store in maintenance mode for five minutes during final sync stops new sales from landing on the old database while you migrate.
Phase 3: Deploy and Test on the New Server (Before DNS Update)
Deploying your website on the new server before changing DNS records lets you catch broken scripts, database errors, and missing files before any visitor notices. This stage creates an exact copy behind the scenes so you can test everything while your old host continues handling live traffic.
1. Upload Files and Import Your Database
Log into your new control panel (cPanel → Files → File Manager). Upload your archived site files into the public_html directory and extract them. Next, head to cPanel → Databases → MySQL Database Wizard to create a fresh database name, database user, and secure password. Open cPanel → Databases → phpMyAdmin, select your new database, click the Import tab, and upload your .sql backup file.
2. Update Your Configuration File
Your site needs to know how to connect to its new database home. Open wp-config.php (or your script's main configuration file) inside File Manager. Update the database name, database user, and database password fields to match the new details you just created, then save the file.
3. Preview the Site Using Your Local Hosts File
Before touching your domain settings, preview the new environment safely. Open your computer's local hosts file (on Windows: C:\Windows\System32\drivers\etc\hosts; on Mac or Linux: /etc/hosts). Add a new line at the bottom with your new server's IP address followed by your domain name:
192.0.2.45 yourdomain.com www.yourdomain.com
Save the file and load your site in a web browser. Your computer now routes requests directly to the new server while the rest of the world still sees your old host. Click through your pages, submit contact forms, and test checkout flows to help prevent website downtime. Once you confirm everything works properly, remove that line from your hosts file.
Phase 4: Point DNS Records to Migrate Website to New Host Safely
Once your site files and database are sitting on the new server, you need to direct live traffic there. You do this by updating your domain name system (DNS) settings to point your domain name to the new IP address.
- Update your A record or custom nameservers. Log into your domain registrar dashboard and navigate to Domain Details → DNS Management (or Nameservers). If your host gave you nameservers, select Use Custom Nameservers and paste them into the form. If you manage your own records, edit the primary
A recordfor@and swap out the old IP with your new server IP address (for example,192.0.2.45). - Monitor global DNS propagation. DNS updates do not happen instantly everywhere. Open
whatsmydns.netin your web browser, type in your domain name, and run anArecord lookup. The tool checks servers in cities like Frankfurt, Sydney, and New York. When green checkmarks show your new IP address across all regions, the internet knows where to find your site. - Keep your old hosting account live for 3 to 7 days. Do not cancel your old account the moment you update your DNS. Local internet service providers often cache DNS records for up to 48 hours. Keeping your old host live for a few days ensures visitors sitting on cached connections still see your site without seeing a connection error.
Phase 5: Post-Migration Audit and SSL Verification
Once your DNS updates finish propagating, the migration isn't complete until you verify every system on the live server. A thorough audit ensures your security certificates, transactional tools, and search engine rankings remain fully intact.
- Re-install and verify SSL certificates: Ensure your site forces HTTPS connections right away. If your SSL isn't properly configured on the new server, visitors will face full-page security warnings. Run your domain through an online tool like SSL Shopper to confirm there are no missing intermediate certificates or mixed-content errors.
- Test forms and payment gateways: Submit a test entry through your contact forms and complete a test purchase if you run a WooCommerce store. Contact forms often stop delivering messages after a move because outbound SMTP settings or server mail functions vary between hosting setups.
- Verify email routing: Send and receive test messages using your domain email accounts. Double-check that your MX, SPF, DKIM, and DMARC records copied over accurately so legitimate emails don't end up inside customer spam folders.
- Audit 301 redirects and internal links: Run a crawl using a site auditor like Screaming Frog to locate broken 404 links or missing
.htaccessredirect rules. As detailed by Google Search Central, moving to a new host does not harm your SEO rankings as long as your URLs, site structure, and server response times stay intact.
Prefer a Zero-Risk Migration Handled by Server Experts?
Moving database tables, editing local hosts files, and fixing file path errors manually takes time and focus. If you run a busy online store or manage client sites, a single misplaced file path or dropped database table can break your site.
You don't have to handle the heavy lifting yourself. We include free website migration with all hosting plans at VernalWeb, so you don't have to spend your weekend troubleshooting configuration files.
Our technical team takes care of the technical steps for you:
- Full data transfer: We copy your website files, databases, email mailboxes, and DNS settings to your new server account.
- Staging preview: We set up your site on our servers and test database connections, scripts, and media files before touch any live domain settings.
- Zero-downtime cutover: We guide your DNS switch only after confirming the temporary URL works, ensuring your site stays accessible every second.
On our support desk, we move hundreds of sites every month. Our 24/7 technical support team works around the clock via live chat, tickets, and phone to get your site set up without data loss or unexpected errors. If you're ready to switch providers without the headache, pick a hosting plan today and let our server team move everything over for you.
Frequently Asked Questions
Will I lose SEO ranking if I change web hosts?
No, changing hosts won't harm your SEO if you keep your URLs and site structure the same. According to Google Search Central, as long as you prevent downtime and maintain fast response times, your rankings should remain stable. We recommend keeping your old hosting active until the new one is fully verified.
How can I test my website on a new host before changing DNS?
The best way is to edit your computer's 'hosts' file. By mapping your domain to the new server's IP address locally, you can browse the site as if it were live. This allows you to check for database errors or broken links without the public seeing any unfinished work.
How do I migrate my email accounts to a new host?
You can move your emails using a self-service IMAP migration tool or by manually recreating the accounts in cPanel. At VernalWeb, we provide a migration tool that copies your folders and messages over. Remember to update your MX records and SPF/DKIM settings to ensure your mail doesn't go to spam.
How long does web hosting migration take?
A standard cPanel-to-cPanel migration usually takes a few hours to move the data, but DNS propagation can take 24 to 48 hours to complete worldwide. We suggest lowering your DNS TTL to 300 seconds a day before the move to make the switch happen almost instantly for your visitors.