If you wish to move your website’s content to a different hosting account, you can do so with the help of backups.
In case you only want to change the domain of your website while leaving the content as it is (for example, if you were using domain.tld and now want to use newdomain.tld instead), and both domains are in the same hosting account, you just need to move the website files from one domain to another.
For WordPress-based websites, if you have a Premium hosting plan or greater, you can use the Copy Website feature.
If you are using any other CMS, have a Single hosting plan, your website is custom-coded, or you are moving a WordPress website from a subdomain to a domain or subdomain, here are the steps you can follow:
Step 1 - Preparations
First, you need to define your final goal and check your hosting account, as the process is slightly different according to your case:
To have your website accessible by the new domain, while leaving the original domain still working and both domains will lead to the same content, the best option for you is to park your new domain on the original
Step 2 - Move the Content
To move the website content, generate and download backups of the website's files and database on your original domain.
Next, upload the backup to the new domain’s public_html folder.
If your website requires configuration files and the domain name is mentioned in those files (like OpenCart, Joomla, and many more), make sure to update the domain name wherever it's mentioned. You might need to contact a developer or a forum specified on your CMS for additional guidance.
If you are also using a database, make sure to complete these steps as well:
That’s it - your content is now located on the new domain 😊
To see the updated version of your website on the new domain, it is recommended to clear the cache