UK Sales: 0800 035 6364 | | We'll Call You

How to move a WordPress website from one host to another


Help for WordPress
Help for WordPress

Moving a website built in WordPress is a fairly technical process and for that reason, we recommend you make a backup before you attempt the process. This article refers to self-hosted WordPress sites, not sites built on the hosted platform.
A WordPress site or blog consists of two parts working together: 1) the files inside the folder where your site is installed, and 2) a MySQL database which stores all your pages, posts, comments, and settings.




Create a full export of your WordPress database. A simple way to do this is with phpMyAdmin, it's the same process as backing up your database and is included in most hosting accounts. There's a detailed post describing how to do make a database backup on the WordPress site. You can also find some WordPress plugins that will create a full database backup/export. The WP-DB-Backup plugin does exactly that.


[Optional] If your site is changing it's domain name, then this step if necessary. If you are simply moving hosts, and keeping the same web address (domain name), then skip this step.
If the address is changing, you need to filter your database and correct all the paths, or none of your images will show up on your new site. This is because all of the paths to the images (including your site address) are stored in the database. Open the .sql database export file in a text editor with a good find/replace function and replace the old site domain name with the new one everywhere it is found. You also need to make sure that the "wpurl" and "home" options in the "options" table have the correct new domain name.


Website Files


Download all your WordPress files from your existing site, using FTP. The WordPress Codex provides an excellent tutorial on FTP, if you need any help.
On your new website location, upload all your WordPress files, using FTP.
On your new website server, create a new mySQL database and import the database export file you created (and possibly filtered) earlier. This can be done using phpMyAdmin, or any other MySQL admin tool provided by the host. Your host may also import the file for you.
Edit your wp-config.php file to make sure your new database name, user, and host info is correct. This means opening the wp-config.php on your computer using a plain text editor like Notepad. Do not use a WordProcessor as this will add extra hidden characters. Once you've changed the details, save it, and upload it by FTP.

Too Complicated?


2020Media provide FREE migrations for WordPress sites from both self-hosted WordPress websites and sites.
Just choose a hosting plan and sign up, and we'll do the rest.


2020Media is a leading provider of small business Wi-Fi hotspots. If you want to offer free Wi-Fi to your customers or users, our service could be exactly what you are looking for. Our Hotspots are managed in the cloud, ultra-reliable and give you loads of information about behaviour patterns of your users. Read More   Read more...
2020Media introduces Moodle Hosting - UK servers and UK Moodle experts setup your site ready to use. Read more...
Special Offer for Longer Registration Periods Register or renew a .com, .net or .org domain name for 5 years we'll include 1 year free*. Read more...
2020Media is now offering zero-click installation of the popular TYPO3 content management system. Read more...

Our blog is regularly updated with news, tips and industry opinion.


  • AggieWestons
  • baker-and-mckenzie
  • arts-council-england
  • Big Finish
  • barratt-developments-logo
  • City-of-Lincoln-council-logo
  • brora-logo
  • DenisMacShane
  • Construction-Industry-Council
  • colchester