Working with WordPress since v1.5...

Contact Us Today: [email protected]

Transfer website to new host or domain | Migrate WordPress

Website migration to new hosting provider (stock image)

When you need to migrate WordPress to new host or domain, there are multiple considerations to address. Moving a website to another server can be required for many different reasons.

Regardless of the “Why” factor, we can safely back up your website, relocate it to a new hosting provider’s account, reactivate it and test that all is working as it should be!

Transfer WordPress to new host

From time to time it’s necessary to transfer web hosting to another company, perhaps due to;

  • A disagreement with the hosting company, due to having a hacked WordPress website on their server
  • A desire for premium hosting service to improve website speed and user experience
  • A need to physically house the site in a different country.

Regardless of the reason, we can help you move the entire site to its new location, install and configure it, and test if it is all working as it should be. We can also assist with;

  • Locating new hosting for you
  • Switching DNS (domain name server) records to point to the new hosting location
  • Configuring hosting account – emails, anti-spam and more

Domain/website migration can be a complex procedure, especially the first time you need to do it, and having an expert to carry out the process for you can be a relief!

Primarily focused on how to migrate a WordPress website to another web server, most of the stages are similar for any database-driven site. A static HTML site is invariably less complicated.

Why Relocate your WordPress Website

Reasons to migrate WordPress site to new domain are many and varied and can be as simple as discovering a much better deal elsewhere. Sometimes the move is driven by dissatisfaction, or a dispute, with the current hosting provider. Sometimes, the current provider may be unable to provide a specific service you require e.g. SSL Certificate, static IP address, or implementation of specialist software or services.

In some cases, your current supplier might be your website designer who has also provided your domain registration and hosting on a proprietary CMS system. Escaping from a situation like that can be slightly more awkward as that may preclude them from giving you access to the control panel and FTP. Worse, you might not find another service provider with a compatible system…

Regardless of the reason, its much easier to execute a move now than it was a decade ago, and there are certainly plenty of hosting options to select from.  Some hosting companies even offer technical support to assist you with your move to their server. If not, I provide expert WordPress website hosting relocation services.

In general, most designers, hosting companies and registrars will respond in a professional manner to your requests for the information required to effect a website move. Doing otherwise places their business at risk, as the national domain registrar enforces compliance with the rules.

If the relocation to a new hosting provider requires the transfer of your domain registration to a new registrar, that’s a complication but far from insurmountable. Choose your new provider and use their domain migration tools to initiate a change of registrar.  The old registrar is obliged to cooperate promptly, and will probably send you a verification email to ensure you authorised the change. The process is usually completed within a couple of days.

What You Need To Complete the Migration

Making a move requires three sets of basic information as follows.

Old Hosting Account Details

You will need the current hosting account Control Panel access in order to back up your database and/or your site’s files. You will also need access to FTP details, required to download the backups and site files.

New Hosting Account Details

You will need a new hosting account established and access details for both the Control Panel and FTP. Control panel access will allow you to create a new database if required, and FTP access is essential to quickly upload your site’s files to the new hosting server. You also need the Domain Name Server details, usually provided with the documentation for your new account.

Domain Registration Account Details

You will need the access details for your account at your Registrar’s website in order to make changes to the Doman Name Server (DNS) records. This is where you specify the location of the new hosting server for your domain.

IP Addresses of Old & New Server

To know when DNS propagation is completed, at some point, you may find it useful to know the IP address of the current hosting location. If you are a Windows user, enter CMD in the Start / Run box to open a command line interface.

Enter the command: ping +

– that will list the current IP address of your website – take note of it.

How to migrate WordPress site to new host

Assuming that you now have all of the required User ID and password details, proceed to back up all aspects of your website. If possible;

  • Do a full site backup from your control panel and save that on your local PC
  • Do a database backup if you are using a CMS – such as WordPress, Joomla or Drupal etc
  • Manually copy ALL site files from /public_html/ or /html_docs/ via FTP to your local PC

Backups are always a comfort and reassurance when you start fiddling… Ensuring you have the files stored locally is important because once you change the DNS server records, you lose access to anything left behind on your old server. Prudence and experience suggest that you cannot have too many backups, but you most certainly can have too few!

WordPress Migration Tools

WordPress users will find that there are several migration tools available. The one I have been using for the past few years is Updraftplus. It’s a premium plugin with reasonable licensing costs – I’ve got the Developer’s License which allows unlimited use, ideal when providing website maintenance across many websites.

The New Hosting Location

When it comes to getting set up on the new hosting location, you have at least three options;

  1. Transfer Full Backup and restore it on the new hosting location straight away under the correct Domain Name. Set the WordPress and Site Address to the correct domain name.
  2. Install a fresh WordPress version and restore the database and files through Updraftplus after editing the host file. Transfer the Backups across via FTP to the required location, usually /wp-content/uploads/updraft/. Restore the Backups – Updraftplus replaces URLs as part of the restore.
  3. Use the service to access your new site location by IP Address – it’s only $5 for a month of access, and it’s a lot easier than messing about with the host file.

Option 1 is far less complicated and leaves fewer residual issues (such as broken links, WordPress and site addresses) to resolve after the migration. It does have the disadvantage of showing a generic or “under construction” Home page until such time as you run the Restore script.

Option 2 means that when the site is viewed on the Temporary URL, it is still referencing the old site for internal links etc. All menu links will point to the correct Domain Name. When DNS propagation occurs, everything should immediately work correctly. A “search and replace” may be needed to find links in slideshows, widgets etc.

Option 3 is a pretty good way to keep the site accessible while you transfer content to the new host and test everything before switching Domain Name Server records over.

In the past, hosting companies provided access via a “temporary” file/path but that’s fallen from favour in recent years due to perceived security issues. E.g.

In the scenario where you’ve redesigned the site on a development server AND are migrating it to new hosting for the launch, you should not be surprised to see the Home page link try and open the old site.

As soon as DNS propagation occurs, everything should work correctly.

Regardless, we need to check for broken links, missing images etc and fix up any that are broken. Often, some may be set to the temporary IP-based URL instead of the correct domain name. This particular issue can sometimes be messy, and is best resolved with the “Search & Replace” plugin – which in itself requires an additional degree of expertise and confidence!

In a temporary hosting environment, you are obliged to use a temporary Domain URL until such time as the DNS changes are propagated. In that case, once DNS propagation is completed, you will need to edit the WordPress Admin / General  Settings for;

  • WordPress Address (URL)
  • Site Address (URL)

Updraftplus Migration

Updraftplus offers Backup, Restore and Migration options and makes a complex process as easy as it could possibly be, in a series of logical steps;

  1. Do a complete Backup of the website on its current hosting using Updraftplus
  2. Download the complete Backup to your PC
  3. Install WordPress and Updraftplus in the new hosting location
  4. Upload the backup to your new hosting location’s /updraft/ directory
  5. Restore the Backup – this converts URLs as/if required to the new hosting location
  6. The final step removes the old plugins & themes directories and temporary files.

You may be able to transfer the files to the new hosting location directly via FTP, depending on server compatibility and security. In practice, there are fewer issues when FTP is used to first download backups to your local PC and then upload those to the new hosting.

Static HTML Site Migration

This is far easier because you don’t have the complication of database migration to deal with.

The New Location

When it comes to getting set up on the new hosting location, you simply transfer all the site files and directories to the root directory.

Once DNS propagation is completed, everything should work as it did in the old hosting location. Static HTML sites are far less complicated and leave few if any issues such as broken links to repair.

Hosting providers offer free migration

Most WordPress hosting services will do cpanel to cpanel (cpmove) of MySQL databases and website files to your new web host account. Often the username and password is preserved, and email accounts and forwarders are automatically transferred.

When to Change the DNS Records at Your Registrar

You are ready to edit the records at the point when you have;

  • All the required access details for both hosting accounts
  • The new DNS details at hand
  • Full and database backups plus copies of all files safely in your possession on a local drive
  • Uploaded the Backup and Restored it to your new web host account
  • Tested for broken links and images

Log into your Domain account and locate the option to edit the Name Server records. Change the existing records to the new values provided by your new hosting provider and save the settings.

DNS propagation may take up to 72 hours, depending on where you are located in relation to the server. Often, it occurs within an hour or two, and in most situations within 24 hours. There is no notification, and the easiest way to determine if it’s changed is;

  • Check the site and if the default ‘under construction’ page or a listing of the Home directory loads then Name Server records have directed you to the new hosting.
  • Alternatively, for a static site, using the ping command again will tell you what the current IP address is…

After DNS Propagation

Once the site has been loaded into its new home, check it thoroughly for broken links, missing images etc.

Relocate a WordPress Website – Finishing Touches

If you successfully moved the site and everything is working as it should be, courtesy suggests that a note to your old hosting company is appropriate. Let them know your move has been done and thank them for their help and services. As part of any migration project, I provide full-service WordPress website maintenance plans that ensure you always have proactive management efforts ongoing.

Please let me know exactly how I can assist…

Last Updated 5 months ago by Ben Kemp