[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now


How to Transfer a Wordpress site to another host

Published on
10,310 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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
LVL 31

Expert Comment

Thank you, simple and concise!

Featured Post

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Join & Write a Comment

The purpose of this video is to demonstrate how to update a WordPress Site’s version. WordPress releases new versions of its software frequently and it is important to update frequently in order to keep your site secure, and to get new WordPress…
The is a quite short video tutorial. In this video, I'm going to show you how to create self-host WordPress blog with free hosting service.
Suggested Courses

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month