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.
Next, type “all in one wp migration” in the search box and install and activate the plugin.
The plugin will be added to the left sidebar. Hover the mouse on it and click on the “Export” option.
Next, click on the “Find Replace in the Database” button. You will find two input fields.
In the “Find” field, type your local host domain. In the “Replace with” field, type your production domain. Next, click on the “Add” button.
Click on the “EXPORT TO” button. You can export your WordPress site to File, DropBox, Google Drive, etc. For this article, choose File.
It takes some time to prepare the backup. When it is done, click on the “Download” button.
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.
Next, go to the Plugin menu and click on the “Import” option.
Next, click on the “IMPORT FROM” button and click on the “FILE” option.
Select the downloaded backup. The plugin will start importing the files.
If it shows you a warning message, click on the proceed button.
When it is done, it shows a success message.
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.
If you see error 404 when you visit any post, go to Settings > Permalinks.
Check if the right permalink structure is selected.
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.