Skip to main content
Guides

Changing Hosts Without Downtime: A Migration Walkthrough

MMercy Chepkemoi27 July 202611 min read2865 views

Changing your web hosting provider does not have to mean losing website visitors, missing customer emails or interrupting business operations. With proper planning, you can move your website to a new server while keeping disruption to a minimum.

Most migration problems do not happen during file transfers. They occur when DNS records are changed too early, email services are overlooked, databases continue receiving updates on the old server, or scheduled tasks are forgotten.

This guide explains how to migrate a website safely, from the initial inventory to the final checks after switching servers. Whether you manage a WordPress website, an e-commerce store or a custom web application, the same core principles apply.

If you prefer professional assistance, you can explore SteboHost's hosting services and confirm available migration support with the team.

1. Create a Website Migration Checklist

Before copying any files, identify everything your current hosting account supports. A website is often more than its visible pages.

Use this inventory to identify what must be recreated on the new server.

Component

What to check

Website files

Application files, uploads, themes, plugins and configuration files

Database

Database engine, name, users, permissions and backup requirements

PHP or runtime

PHP version, required extensions and other runtime dependencies

Email

Mailboxes, aliases, forwarders, filters and existing messages

DNS

A, AAAA, CNAME, MX and relevant TXT records

SSL/TLS

Certificates, HTTPS redirects and renewal arrangements

Scheduled tasks

Cron jobs, application schedulers and queue workers

Integrations

Payment gateways, APIs, webhooks and IP allowlists

Backups

Existing backup schedule, retention and restoration procedure

Security

Firewall rules, access permissions and authentication settings

Also record the current hosting configuration, including the PHP version, database version and any special server settings.

Why this matters: A complete inventory turns migration into a repeatable process and reduces the risk of overlooking services that are not immediately visible on the website.

2. Back Up the Existing Website

Never begin a migration without a reliable backup of the current website and database.

At a minimum, create:

  • A complete copy of website files.

  • A database export.

  • A backup of important configuration files.

  • A record of current DNS settings.

  • A copy of any custom scripts and scheduled-task configurations.

Store the backups somewhere separate from the hosting account being migrated. This protects your recovery options if the old server becomes unavailable or the transfer fails.

For database-driven websites, confirm that the export is complete and can be imported. For an online shop or another frequently updated application, plan how you will handle orders, form submissions and other changes made during the migration.

Do not assume that downloading a database once will be sufficient if the live website continues receiving new information.

3. Prepare the New Hosting Environment

Set up the destination hosting account before changing the live website's DNS records.

The new environment should match the application's requirements as closely as possible.

Configure the server

Check the following:

  • Required PHP or application runtime version.

  • Necessary PHP extensions and system packages.

  • Database availability and supported versions.

  • Correct file and directory permissions.

  • Application configuration and environment variables.

  • Storage limits and available disk space.

  • SSL/TLS configuration.

  • Firewall rules and any required outbound or inbound connections.

If you are moving a Laravel application or another custom application, review its deployment requirements rather than relying only on the files copied from the old server.

For additional guidance, see the SteboHost developer hosting options.

Transfer the files and database

Copy the website files to the new host, create the required database and user, and import the database backup.

Update the application's configuration to use the destination database credentials and any new server paths.

Keep sensitive configuration files private. Do not expose database credentials or environment files through a public directory.

4. Test the Website Before Switching DNS

A successful file transfer does not prove that a website works correctly.

Test the new installation using a temporary URL, a staging environment or a local hosts-file override. A hosts-file override lets your computer resolve the domain to the new server without changing the destination for other visitors.

Verify the following before proceeding:

  • The homepage and important pages load.

  • Images, CSS and JavaScript work correctly.

  • Users can log in and access restricted pages.

  • Contact forms submit successfully.

  • Payment and checkout workflows work in a safe test mode.

  • Database records can be read and written.

  • File uploads work where applicable.

  • Scheduled tasks and queue workers are configured.

  • Redirects, canonical URLs and HTTPS behave correctly.

  • No critical errors appear in application or server logs.

For an e-commerce website, use the payment provider's test environment where possible. Avoid making unnecessary live transactions during migration testing.

Important: If the site stores customer information, orders or other frequently changing data, plan a final synchronization immediately before cutover. Otherwise, records created on the old server after the backup may not appear on the new one.

5. Plan the Email Migration Separately

Email deserves its own migration plan because website hosting and email hosting are not always provided by the same server.

Before changing mail-related DNS records, identify where your email is currently hosted and where it will be hosted after the migration.

If email is moving to the new server

  1. Create all required mailboxes on the destination server.

  2. Recreate aliases, forwarders, filters and relevant mailbox settings.

  3. Transfer existing messages using an appropriate mailbox migration method.

  4. Configure the destination email service and client settings.

  5. Verify that users can sign in and send and receive messages.

  6. Confirm the correct MX, SPF, DKIM and DMARC DNS records.

If email is staying with the existing provider

Do not change the MX records simply because the website is moving. Preserve the existing email routing and update only the records needed for the website.

This distinction can prevent unnecessary email interruptions.

For more guidance on protecting domain email, read SPF Records Explained: Stop Email Spoofing.

6. Lower the DNS TTL Before Migration

DNS records determine where visitors and services connect when they use your domain name.

The time to live (TTL) specifies how long a resolver may cache a DNS record before checking it again. A shorter TTL can help changes be picked up sooner, but it does not guarantee that every network will switch immediately.

If your DNS provider allows it, consider lowering the TTL of the relevant records to around 300 seconds, or five minutes, approximately 24 hours before migration. This gives existing cached records time to expire before the cutover.

Before changing anything, record the current DNS configuration.

Pay particular attention to:

  • A and AAAA records: Direct the domain to IPv4 and IPv6 addresses.

  • CNAME records: Point a hostname to another hostname.

  • MX records: Direct email to the relevant mail servers.

  • TXT records: May contain SPF, DKIM, DMARC and domain verification information.

Do not change every record automatically. Only update the records required for the migration.

7. Switch DNS During a Quiet Period

Once the new website has passed testing, choose a period when traffic and business activity are relatively low.

Before making the change, confirm that:

  • A recent backup exists.

  • The new website works.

  • The database is synchronized or ready for final synchronization.

  • Email arrangements are confirmed.

  • You have access to both hosting accounts and DNS management.

  • A rollback plan is available.

Update the necessary DNS records to point to the new hosting environment.

Then monitor the website from different networks or locations where possible. Check HTTP and HTTPS access, application logs, error responses, forms and other important functions.

Some visitors may continue reaching the old server because DNS caches do not all update at exactly the same time.

Keep the old hosting account active

Do not cancel the old hosting account immediately after changing DNS.

Keep it available during a planned overlap period while you confirm that visitors and services are consistently reaching the new server.

For dynamic websites, take extra care during this period. If both servers accept changes independently, such as orders or user registrations, the data can diverge. Use a controlled write-freeze, final synchronization or another appropriate cutover method rather than assuming the two databases will stay identical.

For email, monitor both systems if messages could still be routed to the old server. Where practical, arrange a controlled mailbox synchronization or forwarding strategy to capture messages delivered during the transition.

8. Verify Everything After the Migration

Once the new server is handling live traffic, check the services that may not be obvious during a quick homepage test.

Check

What success looks like

Website availability

Main pages and critical routes load correctly

HTTPS

The certificate is valid and redirects behave as intended

Database

New submissions, orders or account changes are saved correctly

Email

Sending and receiving work, with no missing mailboxes or routing errors

Cron jobs

Scheduled scripts execute at the expected times

Queue workers

Background jobs are processed successfully

Backups

The new environment has a working backup schedule

Integrations

Payment callbacks, webhooks and external APIs respond correctly

Monitoring

Availability checks and alerts are configured where available

Search engine access

Robots directives, canonical URLs and important redirects remain correct

If your application depends on external services that allowlist server IP addresses, update those settings where necessary.

For monitoring and availability guidance, visit SteboHost Performance and Monitoring.

9. Retire the Old Hosting Account Safely

Only cancel the old hosting service when you have confirmed that the migration is complete and the old environment is no longer needed.

There is no universal rule that you must keep the old account for an entire billing cycle. The right overlap period depends on your DNS configuration, email setup, website activity, provider billing terms and recovery requirements.

Before cancellation:

  • Confirm that live traffic reaches the new server.

  • Verify that important data is present and current.

  • Confirm that email routing is stable.

  • Check that scheduled jobs, integrations and backups work.

  • Save any remaining records or files you need.

  • Retain a secure backup according to your recovery policy.

  • Check the old provider's cancellation terms to avoid unwanted renewal charges.

For business-critical websites, a longer overlap may be worth the additional cost. For a simple static website, a shorter period may be sufficient once the relevant checks pass.

Common Website Migration Mistakes to Avoid

Changing DNS before testing: Build and verify the destination first.

Forgetting email: Identify whether email is moving or remaining with the existing provider.

Ignoring database changes: Plan how to synchronize orders, form submissions and other live data.

Overlooking scheduled tasks: Recreate cron jobs, queue workers and application schedulers.

Assuming DNS changes are instant: TTL helps, but caching behaviour varies.

Canceling the old account too soon: Keep a practical recovery window until the new environment is confirmed.

Skipping backups: A verified backup is essential if rollback becomes necessary.

Frequently Asked Questions

Can I migrate a website without downtime?

Many websites can be migrated with little or no noticeable downtime when the destination is prepared in advance, testing is completed before DNS changes, and the final data synchronization is handled correctly. However, zero downtime cannot be guaranteed for every application or hosting setup.

How long does a website migration take?

The time required depends on website size, database volume, email requirements, application complexity and the amount of testing needed. A small static site may take much less time than a busy online shop or a custom application.

Will changing hosting affect my domain name?

Usually, you can keep your existing domain registration and simply update the relevant DNS records. Transferring a domain registrar is a separate process and is not normally required to change web hosts.

Will I lose my emails when changing hosts?

You can avoid most migration-related email loss by creating destination mailboxes before changing MX records, transferring existing messages, checking mail routing and monitoring both systems during the transition where necessary.

How long should I keep my old hosting account?

Keep it until you have confirmed the new website, database, email and scheduled tasks are working and you no longer need the old environment for recovery. The appropriate period depends on your website and provider arrangements.

Should I change my nameservers or only the DNS records?

If you are keeping your current DNS provider, updating only the necessary records may be the simplest option. If you are moving DNS management to another provider, you will need to recreate and verify all required records before changing nameservers.

Can my hosting provider migrate the website for me?

Some providers offer migration assistance, but the scope and eligibility vary. Confirm whether the service includes website files, databases, email, DNS, testing and any application-specific configuration before scheduling the move.

Conclusion

A successful hosting migration starts with preparation, not copying files. Inventory your services, create reliable backups, configure and test the new environment, plan email separately, and switch DNS only when you are ready.

After cutover, verify the website's database, email, scheduled tasks, integrations and backup arrangements. Keep the old account available until the migration has been confirmed and you have a safe recovery path.

If you are planning to move your website, explore SteboHost hosting solutions and contact the team to confirm the migration support available for your website.

#migration#hosting#dns#guide
M

Written by Mercy Chepkemoi

SteboHost engineering and operations team. We write practical guides on hosting, domains, email and security for African businesses — based on what we see in the field, not marketing copy.

Ready to get started?

Browse our hosting plans or contact our team for help choosing the right one.