The Golden Rule: Never Cancel the Old Host First
The single rule behind how to change web hosting without downtime is simple: the old and new hosts must overlap. Your website lives on the old server until DNS tells the world to visit the new one, and DNS takes time to spread. If you cancel the old plan first, there is a window where your site exists nowhere.
Plan for one to two weeks of overlap. Yes, you pay for two hosts briefly. That small cost buys you a rollback option: if anything goes wrong on the new host, your old site is still live and you can point DNS back in minutes. Every step below assumes both accounts are active.
The Order of Operations: How to Change Web Hosting Safely
Migration is a sequence problem. Do these in order and your visitors will never notice the move:
- Buy the new hosting. Do not cancel the old plan.
- Back up everything: website files, database, and email.
- Migrate using the new host’s free migration service or a manual move.
- Test the migrated site on a staging or temporary URL, or via the local hosts-file trick.
- Lower your DNS TTL 24 to 48 hours before the switch.
- Switch DNS by changing nameservers or the A record.
- Verify the site and SSL certificate on the new host.
- Monitor for 48 to 72 hours: pages, forms, checkout, email.
- Cancel the old host only after a week or more of stable running.
The rest of this guide expands each step so nothing gets skipped.
Step 1: Back Up Everything Before You Move a Byte
Backups are your insurance policy, and they must exist before the migration, not after. You need three things:
- Website files: download via your old host’s file manager or FTP. For WordPress, a plugin like UpdraftPlus can package everything for you.
- Database: export it from phpMyAdmin (or your host’s database tool) as a .sql file. Without this, a WordPress or dynamic site is just an empty theme.
- Email: export mailboxes or set up forwarding before you move anything. Email is the backup people forget, and it is the hardest to recover.
Verify the backups by checking they actually downloaded and open. Keep them until the old host is cancelled and then another month for safety.
Step 2: Migrate, Then Test Before You Touch DNS
With backups in hand, move the site. The easiest path is the new host's migration service: Hostinger offers free migration (checked 13 Oct 2026), so ask their 24/7 live chat support to move your site after you sign up. If you prefer to do it yourself, upload your files, import the database, and update the database credentials in your config file.
Now test before touching DNS. Most hosts give you a temporary URL; alternatively, the local hosts-file trick lets your own computer preview the new server while the world still sees the old one. Click through pages, submit the contact form, run a test checkout, and log in to the admin area. One detail people miss: check the PHP version. If the old host ran a different PHP version, match it in hPanel first (Hostinger lets you switch PHP versions per site) to avoid surprise errors. Our WordPress hosting guide covers the setup specifics.
Step 3: Lower TTL, Then Switch DNS the Right Way
TTL (time to live) tells DNS resolvers how long to cache your records. A high TTL means a slow switch. One to two days before moving, lower your domain's TTL to 300-600 seconds at wherever your DNS is managed, and wait for the old TTL to expire so the new low value is in effect.
Then make the switch: change nameservers to Hostinger's, or update the A record to the new server IP. Verify with whatsmydns.net that the new IP is showing worldwide. Do not celebrate yet; propagation is the reason the next step exists. If your DNS lives at your registrar, our web hosting guide links to the setup docs.
Email, SSL, and the Details That Break Migrations
Three details cause most post-migration pain:
- Email and MX records. Move mailboxes separately from the website. If email stays at the old provider, leave MX records alone; if it moves, set up the accounts on the new host first and copy every MX, SPF, DKIM, and DMARC record. See our email hosting guide for the record-by-record version.
- SSL. Hostinger provisions a free SSL certificate once DNS resolves to the new account. Expect a brief window where browsers warn the site is insecure; give it a few hours after propagation.
- Hardcoded URLs. If the migrated site still references the old server or a temporary URL, run a search-and-replace on the database for the old address. Missed references show up as broken images and mixed-content warnings.
When Not to Switch Hosts at All
Moving hosts is work, so make sure the move is the fix. If your current host is fine and the real complaint is the renewal price, try negotiating first; loyalty departments at many hosts will discount a renewal when you ask. Only move if the savings survive the value of your time.
And be honest about fit. If you need Windows hosting, Hostinger is Linux-only and a Windows-specialist host is the right destination, not a workaround. The same applies to specialized stacks: a host built for your stack beats a generic host with a plugin. For standard Linux-based sites, though, a Hostinger VPS or shared plan is a reasonable landing spot with free migration to get you there.
| Phase | What to do | When | How you know it worked |
|---|---|---|---|
| Prepare | Buy new hosting; do NOT cancel the old plan | Day 1 | New account active, old site untouched |
| Back up | Full backup: files, database, email | Day 1 | Backup files downloaded and verified |
| Migrate | Free migration service or manual move | Days 2-3 | Site loads on temporary URL |
| Test | Click through pages, forms, checkout | Days 3-4 | Everything works on staging |
| Switch DNS | Lower TTL first, then change nameservers | Days 5-6 | whatsmydns shows the new IP everywhere |
| Retire old host | Cancel after a week or more of stability | Day 12+ | 48-72 hours stable, email flowing |
Premium Web Hosting
48-month plan, paid upfront
Renews at $10.99/mo
- 3 websites
- Free domain for 1 year
- 20 GB SSD storage
- Free weekly backups
- Free CDN
FAQ
At a safe pace, one to two weeks from buying the new plan to cancelling the old one. The migration itself usually takes a few hours to a couple of days depending on site size; most of the calendar time is waiting on DNS propagation and the monitoring window. Rushing the DNS switch is how downtime happens, so let the overlap do its job.
Not if you follow the order in this guide. Your site stays on the old host while you migrate and test, and DNS only switches after the new copy is verified. Visitors keep reaching the old server until propagation completes, then reach the new one. Downtime happens when people cancel the old plan first or switch DNS before testing.
Hostinger offers free website migration, which is confirmed on its official site (checked 13 Oct 2026). In practice this means their team moves your files and database for you when you ask support after signing up. Always confirm the current terms in live chat before you buy, because the scope of free migration can change, and verify the migrated copy yourself before switching DNS.
Move it separately and deliberately. If your email is hosted with your old provider, either migrate the mailboxes to the new host or keep email where it is and leave the MX records alone. The dangerous move is changing nameservers without copying MX records over: your website moves fine, but incoming mail starts bouncing. Test sending and receiving after the switch.
Yes, you can move at any time; there is no technical requirement to wait for a contract to end. The catch is money, not technology: most hosts do not refund the unused portion of a prepaid term, so moving mid-contract usually means writing off what you already paid. Factor that loss into your decision before you start the move.
That is exactly what the testing step is for. Never switch DNS until you have clicked through the migrated site on its temporary URL: pages, contact forms, checkout, and login areas. If the new host is slower or something breaks, you find out while the old site is still live and you can fix it or walk away. Hostinger's 30-day money-back guarantee adds a further safety net.
