· Website Migration · 8 min read

How to Transfer Your Website to a New Hosting Provider

A practical guide to moving your website safely, from preparing backups and copying files to testing the new hosting account and updating DNS records.

Website migration checklist displayed beside a laptop

Moving your website to a new hosting provider can improve the resources, support or services available to your business. However, a hosting migration needs to be planned carefully. If files, databases, email settings or DNS records are missed, your website or email may stop working during the change.

The good news is that a website can usually be moved without rebuilding it from scratch. The process depends on how the website was created, where its domain is registered and which email services it uses.

This guide explains the main steps to prepare for a hosting migration and reduce the risk of disruption.

1. Understand what needs to be moved

Before starting, make a list of everything connected to your current hosting account.

This may include:

  • Website files, images, themes and plugins.
  • Databases used by the website.
  • Domain-based email accounts and stored messages.
  • Subdomains and addon domains.
  • SSL certificate configuration.
  • DNS records.
  • Scheduled tasks, redirects and application settings.
  • Website backups and logs you need to retain.

Not every item is necessarily stored in the same place. For example, your domain may be registered with one company, your website hosted with another and your email handled by a separate provider.

Identify each service before changing anything.

2. Choose the new hosting plan

Make sure the new hosting account can support your website.

Check the available storage, processing resources, database support, PHP or other required software versions, email capacity and control-panel features. If your website uses a content management system such as WordPress, confirm that the new environment supports the requirements of your current installation.

Do not choose a package based only on the amount of storage. Your website may depend on specific software versions, database settings or server features.

If you are unsure, ask the new provider to review the requirements before you begin.

3. Create a complete backup

A reliable backup is one of the most important parts of a migration.

Create a copy of your website files and export the associated database. If you use email on the old hosting account, plan how to preserve mailboxes and messages as well.

Where possible, download the backup to a computer or secure storage location that is separate from the old hosting account.

Check that the backup files are present and that the database export is not empty. A backup that has not been checked may not be useful when you need it.

Do not cancel the old hosting account yet. Keep it active until the new website and any related services have been tested.

4. Set up the website on the new hosting account

Create the required domain or temporary testing address in the new hosting control panel. The exact process varies by provider and control panel.

Upload the website files to the correct document root or website directory. If the website uses a database, create a new database and database user, then import the database backup.

Update the website configuration so that it connects to the new database. For a WordPress website, this commonly involves checking the database name, username, password and database host in the configuration.

Also check file permissions, application settings and any server-specific configuration files.

If the website uses absolute URLs or has hard-coded paths, you may need to update them. Be especially careful with search-and-replace operations in databases, because some applications store data in formats that can be damaged by a simple text replacement.

5. Test the website before changing DNS

Where possible, test the new installation before directing visitors to it.

Check the homepage, internal pages, images, menus, forms, login areas and any important functions such as online orders or bookings. Test on a phone and a desktop browser.

For a WordPress website, check that the administration dashboard works and that plugins and themes load correctly. Review error logs if pages fail or display unexpected behaviour.

You can use a temporary URL or a local hosts-file method to preview the new server, depending on your provider and technical experience. Ask the new host for its recommended testing method.

Do not assume that a successful file upload means the migration is complete.

6. Plan the email migration separately

Email needs special attention because it is easy to overlook during a website move.

If your email accounts are hosted with the old provider, create the equivalent mailboxes on the new service and plan how existing messages will be copied. Record the current email addresses, mailbox sizes and any forwarding rules or aliases.

If your email is hosted elsewhere, you may not need to move the mailboxes at all. You will, however, need to preserve the DNS records that direct email to that provider.

Important records can include:

  • MX: tells other mail servers where to deliver incoming email.
  • SPF: identifies which services are authorised to send email for your domain.
  • DKIM: adds a digital signature to outgoing messages.
  • DMARC: tells receiving systems how to handle messages that fail authentication checks.

Do not replace your DNS zone with a default template without checking which records your business uses. A website migration should not unintentionally interrupt email delivery.

7. Update DNS when you are ready

Once the new website has been tested, you can direct the domain to the new hosting service.

Depending on your setup, this may involve changing the domain’s nameservers or updating specific DNS records such as the A record and AAAA record.

Changing nameservers can affect more than the website. It may also change where email, verification records and other services are directed. If you use nameservers, make sure all required records exist in the new DNS zone before making the change.

DNS updates do not always appear everywhere immediately. Different networks and devices may continue using cached information for a period of time.

Keep the old hosting account active during this transition.

8. Install or verify SSL

After the domain points to the new server, check that the website loads securely using HTTPS.

Confirm that the SSL certificate is valid for the correct domain names, including the www version if you use it. Check for mixed-content warnings caused by images, scripts or stylesheets still loading over HTTP.

If your website uses redirects, make sure visitors are directed to the preferred HTTPS address without creating redirect loops.

9. Test everything again after the move

Once DNS has updated, repeat the important checks using the live domain.

Test:

  • The homepage and important internal pages.
  • Contact forms and enquiry notifications.
  • Website logins and user accounts.
  • Shopping carts, checkout and payment integrations, if applicable.
  • Email sending and receiving.
  • Password resets and automated notifications.
  • SSL and redirects.
  • Website speed and mobile display.

Ask someone outside your office or home network to test the website as well. This can help identify issues that may not appear on your own connection.

10. Keep the old hosting service until you are confident

Do not cancel the old service immediately after updating DNS.

Allow time for DNS caches to expire and confirm that visitors are reaching the new website. Check that no new orders, form submissions or email messages are still being recorded only on the old server.

For websites that receive frequent updates, you may need a final synchronisation of files or database content just before or after the DNS change. This is particularly important for online stores and membership websites where new information is added continuously.

Once you have confirmed that the new service is working and all required data has been transferred, you can arrange cancellation according to the old provider’s terms.

Common website migration mistakes

Avoid these frequent problems:

  • Starting without a complete, verified backup.
  • Forgetting the database while copying website files.
  • Overlooking email accounts or DNS records.
  • Changing nameservers before recreating essential DNS records.
  • Failing to test forms, checkout and other important functions.
  • Cancelling the old hosting service too early.
  • Forgetting to check SSL certificates and redirects.
  • Making several changes at once without recording what was changed.

A checklist and a planned migration window can prevent many of these issues.

Should you migrate the website yourself or ask for help?

A small static website may be relatively straightforward to move if you are comfortable managing files and DNS. A WordPress website with databases, email accounts and several integrations requires more care.

For an online store, membership platform or business-critical website, professional migration assistance may be worthwhile. The person handling the move should understand the website, hosting environment, DNS and email dependencies.

Before paying for migration assistance, confirm what is included: backup, file transfer, database migration, email migration, DNS changes, SSL setup and post-migration testing may be separate tasks.

Move your website with a clear plan

A successful website migration is more than copying files from one server to another. It means moving the parts that make your website work, preserving email and DNS settings, testing the new environment and keeping a recovery option available.

YanaHosts Africa can help you understand the hosting requirements involved when moving to a new hosting environment. If you are considering a migration, tell us what platform your website uses, where your domain and email are hosted, and whether you need assistance with the transfer. This information helps establish the right migration plan.

Share:
Back to Blog

Related Posts

View All Posts »