Many of us have been in this position, whether you are a regular user of WordPress or a developer looking to transfer a website from development or transfer a website from one domain name to a new one. We have done is 100x and often make small, silly mistakes. We are not only writing this for any of you to find useful but it is also going to be our own checklist to avoid the same mistakes which often get overlooked.
This post is focused on transferring smaller websites which includes standard content rather than large ecommerce websites or websites larger than 800mb in size.
Install the Duplicator plugin for WordPress
I reckon duplicator was one of the very first plugins we ever used with WordPress. Duplicator is a great plugin which easily makes a copy of your website and provides you with two files you download. First there is the Installer file and secondly a zip file which includes your website and database in a compressed zip file. When creating the package to download, you do have to wait for your server to package the files, please be patient, times do vary depending on the server the website is hosted on.
Once the packages appear, you should download the Installer and Website zip file.
Transfer and upload your installer and zip file
You should now have downloaded your installer and zip file from the website you are transferring away from. You now want to login to your new host and upload both files to the root folder. Make sure that nothing else is in this folder. Open two new tabs, in the first tab, navigate to the MySQL section of your hosting and create a new databse. Open Notepad or Word and copy the Datbase Name, Username, Password and the Host into the document.
In the other browser tab, navigate to the new website url and at the end, include /installer.php . From here follow the steps and enter the details you previously saved in the document (Datbase name etc.) Once done you should see a loading screen and the website will be unpackaged and you can rewrite the URL’s to match that of the new domain.
You will then be prompted to delete the installation files. Please go ahead and check the files within the FTP or the File Manager to double check none have been left behind.