How to migrate its WordPress locally to a host? [Quick Guide]

3:00 pm April 21, 201711423

If you are part of those who love develop their WordPress site locally , before send it online at a web host, you may sometimes difficulties to perform the migration.

Therefore, I will explain how you can send your local WordPress site created with Xampp, WampServer, Mamp, Ampps, InstantWP, Local by Flywheel or other, to web hosting, easily, simply by following the right steps.

If you have not yet created your WordPress locally and want to know how to do this, go to the following article: install WordPress simply!

Un WordPress Professionnel

For this you I’ll talk to you several options, then it is up to you to choose the one you prefer:

  1. use a one of the best WordPress plugins to perform the migration in a relatively simple way (Duplicator)
  2. perform the migration manually, by transferring the files and exporting / important data, you will see that is not so difficult!
  3. Use another plugin, less known but very effective: WordPress Move

1. Use Duplicator

Duplicator is a plugin to install on your WordPress to migrate, which creates a package that you then send via FTP in order to extract the content.

If you want to use Duplicator , there is a very good tutorial on WPFormation for use of it, written by Lycia : migrate my site easily with Duplicator

2. Manual migration

to perform the migration manually, we follow three simple steps:

  • prepare and send the files by FTP
  • export and import the database
  • complete the migration and correct all URLs

prepare and send the files by FTP

before you begin, you must download and install a software that allows you to transfer your files via , FTP , I recommend you to use FileZilla.

Now that you have downloaded and installed FileZilla, open it and connect you to your hosting with FTP information provided by your Web host.

If you are hosted at WPServeur , you should have received an email containing all the information of FTP connection.

Once FileZilla launched, you must therefore enter the FTP connection to your accommodation as information below, then click the sign in button .

Once logged in, you’ll see the files and folders already present in your accommodation.

Usually you must then go to the folder htdocs , public_html , www , or another depending on the host. If you are at WPServeur , you are directly in the right place! 🙂

ATTENTION: If you want to migrate your site to your account WPServeur , a WordPress must first be installed, so you will just replace the present WordPress with your. So you must keep the file wp – config.php present on your account to retrieve the connection information to the database and transcribe them on the file wp – config.php of your migrated local site. (Start by renaming it to wp – config.php.old for example)

Once the file wp – config.php to your renamed FTP, go to the folder that contains all the files and folders of your WordPress on your computer and transfer them on your accommodation, either directly via FileZilla files Explorer, either by drag-and-drop as below:

you will certainly see a dialog box opens asking if you want to overwrite the target file because a file with the same name already exists check always “perform this action” and “Replace”, then click on OK and wait until the transfer is completed.

Once the transfer is complete, change the wp – config.php file from your site migrated to enter correct information to connect to the database, and we will proceed to the second stage, the export/import of the database 🙂

export and import the database

turn on your websites locally (Wamp management system (, Mamp…), and access the PhpMyAdmin.

You must select the database concerned, check all the tables that are there, and select the export option.

Click on the “Run” button, then you download your database to the .sql format, and you will need to import it into your database online.

If you have not created a WordPress beforehand, you will have to create a new database, a new user and he grant the rights to the database concerned.

If the database already contains tables, remove them by selecting them and choosing the option “Delete”.

Go to PhpMyAdmin of your host, select the database of your WordPress and click on the “Import” tab.

You must then select the previously exported database, in your files on your computer, and click on the “Run” button.

You must wait for the import finish, the duration depends on the size of your database to import. As soon as you get a message “ import completed with success ” displayed in a green box, you can move to the last step 🙂

complete the migration and correct all URLs

now that the files and the database are on your accommodation online, it must be updated URLs.

To be sure of the correct URL, go back to PhpMyAdmin from your Web host online, and go in the xxx_options table, you will see the URL currently registered on your WordPress:

here, you see that the correct URL is as follows: http://localhost: 8080 / Migration

to correct URLs , you can follow one of the following tutorials:

your WordPress is now properly migrated to your host and is available online! 🙂

3. Use the plugin WordPress Move

you’ll see that it is even easier to migrate a WordPress using the plugin Move WordPress! This plugin is unfortunately no longer updated for several years, but it still works very well 🙂


  • have a WordPress locally (of course!)
  • Have a target WordPress online

first of all, on your WordPress locally and online, install this plugin:

before moving on to the next step, there is one thing you absolutely must do on your local WordPress, you need to change the prefix of the database. To do this easily, you can install the following plugin:

prefix must be exactly the same as your WordPress site online (visible in the file wp – config.php).

Once done, you can remove this plugin and start preparing the migration!

Go to WordPress Move settings, and enter correct information in the various fields of the page as below. Please note that you must enter the IP address of the server on which you are hosted (e), and not 🙂 domain name

to the “Remote Backup Path” fields, you must put the exact path to the folder backup plugin WordPress Move. If you go to the folder public_html , htdocs or another with your FTP account, you must include it in the path!

As soon as everything is filled out correctly, you can start the migration by going to “Tools”-“Migration Assistant” online by choosing the Middle “Migrate” option and clicking on the “Begin” button:

you still have to enter the password, the URL of the site online, select different folders and files to migrate and press the button “Start Migration” to start the migration 🙂

you just to wait as the message “ Uploading files is completed year without error…” “appear!” You will then visit the WordPress online to finalize the migration.

Go now in the administration of the WordPress online, supposed to be replaced by the migrated WordPress, in ‘Tools’-online “Migration Assistant”, and choose this time above the right option “Restore” then click on the blue button “Begin”.

You will see the different files that have been sent by the migration on your local site plugin on your WordPress, select those three files and click on the button “Complete Migration”.

Once the procedure is complete, you will see the “Migration for been completed successfully” message, which means that everything is done correctly and that your migration for been completed successfully.

You are more that to remove this plugin to your WordPress, empty all the caches and enjoy your migrated site online! 🙂