How to Move Local WordPress Site to a Live Server?

Wordpress Local Host to Live

In the previous post, we have seen how to build a WordPress site locally on your computer without hosting and domain. Now, we’ll move this site to a live server.

We are going to use the All-in-One WP Migration plugin. It makes the migration process simpler. First, log in to your WordPress dashboard on your local host. Click on Plugins > Add New.

add new plugin

Next, type “all in one wp migration” in the search box and install and activate the plugin.

all in one wp migration

The plugin will be added to the left sidebar. Hover the mouse on it and click on the “Export” option.

Export site

Next, click on the “Find Replace in the Database” button. You will find two input fields.

find replace

In the “Find” field, type your local host domain. In the “Replace with” field, type your production domain. Next, click on the “Add” button.

local host and production

Click on the “EXPORT TO” button. You can export your WordPress site to File, DropBox, Google Drive, etc. For this article, choose File.

export to file

It takes some time to prepare the backup. When it is done, click on the “Download” button.

download backup

The backup will be downloaded to your computer.

Next, buy a hosting server and install WordPress. Log in to its dashboard and install and activate the same “All in one WP Migration” plugin.

WP Migration Plugin

Next, go to the Plugin menu and click on the “Import” option.

Import site

Next, click on the “IMPORT FROM” button and click on the “FILE” option.

Import from file

Select the downloaded backup. The plugin will start importing the files.

Import

If it shows you a warning message, click on the proceed button.

proceed

When it is done, it shows a success message.

Operation success

When you open anything like posts, it asks you to log in to your WP dashboard. You need to type your local host WordPress username and password here.

wp login

If you see error 404 when you visit any post, go to Settings > Permalinks.

Permalinks

Check if the right permalink structure is selected.

Permalink structure

This is how you move a WordPress site from a local host to a live server. Hopefully, your site is up and running. If you have any doubts, comment below.

Leave a Comment