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, you can use the Copy Website feature.
If you are using any other CMS or have a custom-coded website, here are the steps to change your website’s domain:
Step 1 - Preparations
First, you need to define your final goal and check your hosting account, as the process is slightly 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
If you want to completely move the website’s content to a different domain name, make sure that the new domain name is added to your plan and go to the next step – you can check if your domain is added in the Websites section in hPanel
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:
Create a new database for your new domain
Update the URLs in the new database along with the configuration file on your website
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