Mubasher

Mubasher / CLIENT ACCESS

Your client area is next.

Contact Mubasher

No login details are collected on this trial.

What are you looking for?

Search services, hosting guides and company news.

← Blog & News

Hosting guides ·

Moving your website to a new host without downtime

A planned move keeps the old site live until the new one is tested. Here is the order that avoids lost orders and lost mail.

Cover illustration: Moving your website to a new host without downtime

A migration is safe when the old site keeps working until the new one is proven. Most problems come from changing DNS too early, or from forgetting email.

Before you start

  • List everything on the old host: websites, databases, email accounts, cron jobs, SSL certificates and DNS records.
  • Note the PHP version and extensions the site needs.
  • Take a full backup of files and databases.
  • Lower the DNS TTL to a few minutes a day before the move.

Copy and test

  1. Create the site on the new host.
  2. Upload files and import the database. Update the database settings in the configuration file.
  3. Test the new copy before the domain points to it, for example by using a temporary address or by editing the hosts file on your computer.
  4. Check forms, logins, payments, uploads and scheduled tasks.

Handle changing data

For shops and sites with comments or orders, plan a short freeze, or copy the database again just before the switch so that nothing is lost.

Email

If mail is hosted with the website, move mailboxes too. Copy existing messages with an IMAP migration tool and set the MX records only when ready. Keep both servers running for a few days so late messages are not lost.

Switch DNS

Change the A record, and the MX records if mail moves. Because the TTL was lowered, most visitors arrive at the new server quickly.

After the move

  • Install or issue the SSL certificate.
  • Watch error logs for a few days.
  • Keep the old hosting account until you are sure that nothing is missing, then cancel it.

Common questions

How do I avoid downtime?

Keep the old site running, copy everything to the new host, test it there, and only then change DNS. Lower the TTL a day before so the change spreads faster, and leave the old site online until traffic has moved.

What about orders or comments that arrive during the move?

Pick a short window, freeze changes if you can, then copy the database again just before the switch. For a store, this step matters most.

Will email move with the website?

Not automatically. Decide where mail will live, move the mailboxes first if needed, and keep MX and verification records when you update DNS.

How do I test the new host before switching?

Use a temporary URL or a local hosts file entry on your computer to open the new copy under the real domain name while the world still sees the old one.

When to ask for help and what to send

For a larger site or a store, ask support to plan the move with you. Send the list of sites, the size of files and databases, the mail setup and the date you prefer. A written plan with a rollback step is worth more than a fast move.

A realistic example

A store moves to a new host. It copies the files, tests the new server using a temporary address, and lowers the DNS time-to-live a day before the switch. After the DNS change, both servers stay up for two days. Customers see no gap, and no order is lost.

Mistakes to avoid

  • Switching DNS before testing the copy.
  • Cancelling the old host right away.
  • Forgetting email records during the move.

Quick checklist

  • List files, databases, mailboxes and DNS records.
  • Lower the TTL a day before the move.
  • Copy and test on the new host.
  • Refresh changing data, then switch DNS.
  • Keep the old host until you have checked mail and traffic.