How to Move a Website to a New Host (Without Downtime or Issues)

Ideally, you’ll be finished now. However, some CMS tools use database serialization which can cause issues when you export/import your database like this. WordPress is one example where it’s common to encounter database serialization issues.

Unfortunately, we can’t give one blanket recommendation for all platforms here because it depends on the platform (and you might not even experience any problems).

If you experience issues, you can usually use Google to find scripts that can help you fix the problem for your specific platform. For example, here’s a popular script that can fix WordPress database serialization issues.

5. Update any necessary configuration details (depends on CMS)

Again, it’s hard to give specific instructions here because this step will depend on your CMS and how it’s configured.

However, at this point, you might need to update some configuration details in your site’s configuration files or settings to point to the new database that you created (especially if you used a different database name, username, or password).

Here are tutorials for how to update this information for some of the most popular CMS tools:

  • WordPress
  • Drupal
  • Joomla
  • Magento

If you’re using a different website platform, you might need to turn to Google to figure out how your platform handles configuration files.

READ:  Google Sites Review: Most People Shouldnt Use It (Heres Why)

6. Test your site

At this point, your site should be working on your new host. However, you’ll want to thoroughly test it to make sure it is.

You can’t do this by entering your site’s domain name because your domain name still points to your old host (for now). This is necessary to ensure that you don’t have any downtime during the move.

There are two ways to get around this:

Option 1: Use a temporary URL

Most web hosts give you an option to view your website on a temporary URL before switching domain names.

This temporary URL typically looks something like this:


For example:


If you’re not sure where to find this temporary URL, we’d recommend asking your new host’s support for help.

Option 2: Edit your computer’s hosts file

Another option to test your site is to edit your computer’s hosts file to point to your new server. This lets you manually override your computer to tell it to use your new server when you enter (all of your other visitors will still be taken to your existing host for now, though).

First, you’ll need your server’s IP address, which you can find in cPanel (or, your host usually includes this in your welcome email):

Then, you’ll need to edit your hosts file:

After editing your hosts file, you should now see the new version of your site when you browse to your domain name.

READ:  Creating Your Own Webserver and Hosting A Website from Your Linux Box

Once you’ve verified that your new site works properly, you’re almost finished – just two more steps.

7. Move your email addresses (optional)

If you’re using email hosting from your old host to create a custom email address – e.g. [email protected] – you’ll also want to set up this email address at your new host before you make the switch.

Otherwise, you won’t be able to receive emails once you update your domain name in the next step.

If you’re using email hosting from your host, you can do this by recreating your custom email addresses at your new host via cPanel:

If you’re using a separate email hosting service (such as G Suite), you might need to change the MX records in the DNS settings at your new host once you point your domain name to that new host in the next step.

8. Update your domain name to point to your new host

Once you’ve verified that the migrated version of your website is working properly, the final step in how to move a website to a new host is to update your domain name to point to that new host.

When you make the update, visitors will be taken to the new version of your site at your new host, with no downtime.

Typically, you’ll do this by changing your domain’s nameservers, which you can control from the service where you purchased your domain name.

READ:  Can I build a website without hosting?

First, you’ll need to locate the nameservers for your new web host. You can usually find these in your hosting dashboard or welcome email. Or, you can ask your new host’s support staff for help.

Your nameservers will look something like this (but unique for each host):


Most hosts provide two nameservers, but some will give you three or four different nameservers.

Once you have your nameservers, here are some tutorials for editing nameservers at popular domain registrars:

  • GoDaddy
  • Namecheap
  • OVH
  • Bluehost

For example, here’s what it looks like to edit a domain’s nameservers with Namecheap:

9. Test everything again

Now, you’ll need to wait for a little for the change that you made to your nameservers to take effect. This can take up to 24 hours, but normally it’ll only take 30-60 minutes.

Once the change takes effect, you should be able to access the version of your site at your new host when you go to your domain name.

Take another moment to make sure that everything is working:

  • Browse around to different pages
  • Test your forms
  • Make sure you can receive emails (if using custom email addresses)
  • Etc.

If everything is still working, you’re officially finished – that’s how to move a website to a new host without any downtime!

Have questions about how to move a website to a new host? Ask away in the comments and we’ll try to help!