How to move a website to a new host without downtime
A website move goes smoothly when the new server is ready and tested before visitors are sent to it. This guide gives you the order of work, from the inventory and DNS preparation to the switch and the clean-up, plus the details that usually cause trouble: email, SSL and databases.
The short answer
Build and test the site on the new server while the old one keeps serving visitors. Lower the DNS TTL a day or two in advance, copy files and databases, test through your hosts file, freeze changes for a final sync, then point DNS to the new server and keep the old one running until all traffic has moved.
- Lower the TTL at least one old TTL before the move
- Test on the new server before changing DNS
- Run a final sync during a short content freeze
- Keep the old host and mailboxes until traffic has moved
Before you start: make an inventory
List everything the old host does for you, not only the website files:
- Website files, including uploads and anything outside the web root that the site reads.
- Databases, with the user names and passwords the site uses to reach them.
- Email: mailboxes, forwarders and the MX records that route mail to them.
- DNS records: A and AAAA records, CNAMEs, MX, and TXT records such as SPF, DKIM, DMARC and site verifications.
- Scheduled tasks such as cron jobs, background workers and the software versions the site needs, for example the PHP version and its extensions.
- SSL certificates, redirects and rewrite rules.
Note where your DNS is hosted. If the domain uses the old host's nameservers, every record must be recreated on the new DNS before you switch.
Your migration timeline
Adjust the timing to your current DNS TTL. The order of the steps is what matters.
-
Two days before
Lower the DNS TTL
Reduce the TTL of the records you will change, for example to 300 seconds. Do it at least one old TTL ahead, so resolvers forget the long value before you switch.
-
One day before
Prepare the new server
Install the same software versions, copy the files and import the databases. Recreate mailboxes, cron jobs and DNS records.
-
Testing
Test without touching DNS
Point your own computer at the new server with a hosts file entry, then check pages, forms, logins, checkout and outgoing email.
-
Moving day
Freeze and sync
Pause content changes and orders, run a final sync of files and databases, and confirm the new copy is complete.
-
Moving day
Switch DNS
Change the A and AAAA records, or the nameservers, to the new server. Most visitors follow within the TTL you set.
-
After the switch
Check SSL, logs and mail
Confirm a valid certificate on the new server, watch the access and error logs, and check that email arrives in the new mailboxes.
-
About a week later
Retire the old host
When the old server receives no more traffic or mail, take a final backup and cancel it. Raise the TTL again.
Switching DNS: records or nameservers?
If you keep your DNS where it is, change only the A record, and the AAAA record if you use IPv6, so that the website points to the new server's address. Resolvers pick up the change as soon as their cached copy expires, which is why lowering the TTL beforehand makes the switch fast.
Changing nameservers moves the whole DNS zone to a new provider. The new nameservers must already hold every record, and the change is published by the registry of your domain extension, where the delegation records often have a TTL of one or two days. Some visitors may still reach the old DNS during that time, so keep both zones identical until the move is complete.
SSL certificates during the move
Visitors should never see a certificate warning. Free Let's Encrypt certificates are usually validated over HTTP, which requires the domain to point to the new server already, so they are issued right after the DNS switch. If you need the certificate before switching, use DNS validation, which works wherever the domain points, or copy the existing certificate and its private key to the new server for the first days.
Email: the part most moves forget
If your mailboxes move too, create them on the new server before changing the MX records, then copy the existing messages with an IMAP migration tool. Keep the old mailboxes for a few days after the switch, because some senders still deliver to the old server until their DNS caches expire. Recreate the SPF, DKIM and DMARC records for the new mail server, or outgoing mail may be rejected or marked as spam.
Moving a WordPress site
WordPress stores its address in the database, including inside serialized settings. When the domain stays the same, a straight copy of the files and the database is enough. If the address changes, for example from a temporary domain to the final one, replace it with a tool that understands serialized data, such as the wp search-replace command of WP-CLI, instead of editing the database by hand. Update the database details in wp-config.php, and clear every cache layer after the move: plugin caches, the web server cache and any CDN.
Common migration mistakes
Lowering the TTL too late
Resolvers keep the old value for as long as the previous TTL allowed.
Cancelling the old host too early
Some visitors and mail servers still reach it for a while after the switch.
Skipping the final sync
Orders, comments or sign-ups made during the move are lost.
Forgetting email records
Missing MX, SPF or DKIM records break mail delivery.
Switching before SSL is ready
Visitors see warnings until a valid certificate is in place.
Mismatched software versions
A different PHP version or a missing extension can break the site.
Moving to HyperDC?
Many VPS and VDS plans include free migration from your current provider. Tell us what you run and we will reply with the steps.
Where to move your website
-
Linux Web Hosting
Our Linux Web Hosting service provides a reliable and cost-effective solution for hosting your websites. It supports a wide range of Linux-based technologies, ensuring quick and dependable performance.
Starting from $1.59/mo -
WordPress Web Hosting
Our WordPress Web Hosting is optimized for WordPress-based websites, ensuring fast and secure operation. Benefit from automatic updates, backups, and specialized WordPress support.
Starting from $2.39/mo -
Linux VPS Hosting
Linux VPS Hosting grants you more control and freedom with virtual private servers, particularly suited for Linux-based projects, offering excellent performance and customization.
Starting from $3.33/mo -
Windows Web Hosting
Windows Web Hosting is perfect for businesses seeking to host websites and applications that rely on Windows technologies like ASP.NET and MS SQL. It offers compatibility and high performance.
Starting from $1.59/mo
More guides
VPS vs VDS vs dedicated server
What each term means, how to tell when you have outgrown a VPS, and when bare metal is worth it.
Learn moreChoosing a macOS server for iOS CI
Xcode and macOS versions, Apple silicon, sizing, code signing and Apple's licence rules.
Learn moreDNS basics for a new domain
Nameservers, records, TTL and the email records every domain needs.
Learn moreSecure a new Linux server
The first-hour checklist: updates, SSH keys, a firewall and backups.
Learn moreChoose a data center location
How distance becomes latency, how to measure it and what data rules mean for location.
Learn moreFrequently asked questions
How long does DNS propagation take?
It depends on the TTL of the record. With a TTL of 300 seconds, most resolvers use the new address within minutes; with a TTL of one day, some keep the old address for up to a day. Nameserver changes can take a day or two because of the TTLs at the registry.
Can a website move have no downtime at all?
Yes, when the new server is ready before DNS changes and both servers run in parallel during the switch. The remaining risk is data written to the old server after the final sync, which is why a short content freeze helps.
Do I need to transfer my domain to move my website?
No. The domain can stay with its registrar; you only change its DNS records or nameservers to point to the new server. You can transfer the domain later if you want everything in one place.
Will moving hosts affect my search rankings?
Not when the URLs, content and redirects stay the same and the site stays online. Check that the new server returns the same pages, keeps HTTPS working and does not block search engines in robots.txt.
Does HyperDC move websites for customers?
Many of our VPS and VDS plans include free migration from your current provider; the plan features show when it is included. For other services, send us a message and we will explain the options.
Questions before you order?
Send us a message and our team will help you choose the right service.