How to Transfer a Wordpress site to another host

Published on
10,385 Points
1 Endorsement
Last Modified:
Transferring a wordpress site from a host or local dev server to another host can be a pain. So I've included my steps on how I have accomplished this task.

Steps include an assumption that you have Cpanel access or Ftp access.. If you do not have either, I will also include other ways around this using Wp Plugins.  :)

1. Back up FIles

Log into Cpanel, goto Filemanager. Select all file in the wordpress root (public_html). after select all files and folders, click the compress button- this will zip all you files so you can download it to you computer.


Log into your ftp account and download all files in the wp root (public_html) to your computer.


Log into Wordpress, download a plugins called WP Migrate DB (to get a mysql dump), or DBBackWPup (to backup your files) You can install the plugins right into the working wordpress from the admin area.

2. Backup database dump

Log into Cpanel, click phpmyadmin..choose the database, then click export..save to file. (This will download a sql dump which is needed in order to reinstall you wordpress as it is to another server or host).


If you are unable to login to Cpanel. Log into your wordpress account. install plugin(s) called: WP Migrate and/or DBBackWPup and MyFTP (which allow you to view any live code in the php files, including the config.php for db credential reasons)

3. Remap your SQL file

The SQL dump that you have downloaded in the previous step needs to be remapped , that is if you are going to need to use the site on another domain. (e.g  transfer myoriginaldomain.com to mynew domain.com) Of course if you are using you same domain name, then skip this step.

However, to remap, simply open the sql file in notepad, do a find and replace for you old domain name in this exact format: myoriginaldomain.com <-- notice i didn't add "http://www". And replace with: mynewdomain.com. **If you had WP installed in a subfolder, make sure you add the subfolder name to the search if you need to.

4. Upload to New host / Server

Now that you have all files and credentials. Upload the files to new host.
Goto into phpmyadmin, and import the remapped SQL file..make sure you create a database and db user first of course ;)

DON'T FORGET TO EDIT THE CONFIG.PHP FILE to reflect you new database credentials.

After all the above steps have been done, go to mynewdomain.com/wp-admin/update.php.......Just to make sure all is working fully back again..!! Have FUN!!

Author:Sam Cohen
1 Comment
LVL 31

Expert Comment

Thank you, simple and concise!

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Join & Write a Comment

The purpose of this video is to demonstrate how to automatically show related posts at the bottom of a blog post in WordPress. This will be demonstrated using a Windows 8 PC. Plugin “Yet Another Related Posts Plugin” will be used. Go to your…
The purpose of this video is to demonstrate how to make a WordPress Site faster and smaller in size by cleaning up the database. This will be demonstrated using a Windows 8 PC. Plugin WP Optimize will be used. Go to your WordPress login page. T…
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month