So, this is very simple:
First of all, you need to know how WP works. Your server has WordPress’ core program files, your theme files, your plugins and your uploads. All these files can be zipped into one file and uploaded to the new server.
The other side of WordPress is the database: you can’t simply copy this file over. You have to change all the file paths that point to the current server to the new server first (this could be thousands). This is where a helpful plugin comes into play. Here’s how to transfer WordPress successfully:
- Install the WP Migrate DB plugin on the old site. This will ask you the server path to the new server and create a new database file (.sql) with the new server paths.
- On your new server, create a new database and assign a user, and password to it.
- Import the database from the old web server which was generated by the migrate plugin.
- Now, you’re done with all the data. Now gather the entire WordPress installation files from the old server. The fastest way to do this is to zip it on the server and then download it to desktop.
- Then upload it to the new server location where WordPress will sit. Change thewp-config.phpon the new server to the new database name, username and password you created on the new server. Sometimes the host name isn’t “localhost” so change this if necessary.
- Finally, and the most important part, go to your admin section of your new WP site using the same login details from your old installation.
- Go to the Settings > Permalinks and click “save changes.” This will update your .htaccessfile. If you don’t do this your homepage will show but all your other pages may give you an 404 not found error and you will racking your brain trying to figure out why it isn’t working.