If you have hosted your website on a different Hostinger account in the past and need to restore it on a new account, follow these steps 👇
On the Original Account
Access the Hostinger account on which your website is currently stored, and complete the following steps:
-
Create a backup of your website files and database – databases are required for the most popular CMS, such as WordPress, OpenCart, or Joomla
-
Download the file and database backups to your local device
-
Optionally, you can backup your emails, as they will be permanently deleted in the next step
-
After downloading all the required data, remove the website from this account. This step is necessary since each domain name can only be associated with one Hostinger account at a time
On the Target Account
Once you have completed the steps above in the original account, access the target Hostinger account and proceed with the following:
-
Set up your new hosting plan if not active yet
-
Add the website to the hosting plan if you didn’t add it while setting up your new hosting plan
-
Upload the backup of your website files
If your website has a database, you will also need to do the following:
-
Upload the backup of your database
-
Update your database details (database name, username, password) in your website’s configuration file
If you are facing the “Error establishing a database connection“ or a similar error, refer to this article: How to Fix “Error Establishing a Database Connection”
That’s it! Your site is now hosted on the new account. To check it, you may need to clear the browser cache and local DNS cache 😊
NOTES
-
After restoring your website, it will be brought back to the state it was at the moment of backup creation; any changes done after the backup date will be reverted
-
If your WordPress site throws a 404 error on the internal pages after restoration, recreate the permalinks
-
If you get a “Domain is already hosted” message when adding the domain name to your new account, verify that it has been deleted from the previous account