# Transferring the website from one domain to another

**URL:** <https://forum.infinityfree.com/t/transferring-the-website-from-one-domain-to-another/90169>\
**Category:** Hosting Support\
**Created:** [February 17, 2024, 12:55pm UTC](https://forum.infinityfree.com/t/transferring-the-website-from-one-domain-to-another/90169 "2024-02-17T12:55:27Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Meishin](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/meishin/32/59902_2.png) [@Meishin](https://forum.infinityfree.com/u/Meishin)\
**Post date:** [February 17, 2024, 1:09pm UTC](https://forum.infinityfree.com/t/transferring-the-website-from-one-domain-to-another/90169/2 "2024-02-17T13:09:20Z")

</div>

If both domains are on the same account:

> [@How to move a website to a different directory](https://forum.infinityfree.com/t/how-to-move-a-website-to-a-different-directory/88900):
>
> Every website is linked to a certain htdocs directory on your account. But sometimes you need to move a website from one htdocs directory to another. This may be necessary if: You are moving to a different domain name (e.g. a free subdomain to a custom domain). You have recreated your domain name and it was assigned to a different directory. Fortunately, there is no need to rebuild your website from scratch. It’s not difficult to move your website from one directory to another. How to move a…

* * *

If they are on different accounts:

> [@How to backup your website](https://forum.infinityfree.com/t/how-to-backup-your-website/49304):
>
> Good website administration requires making backups of your account regularly and storing them somewhere safe yourself. You also need to download backups in order to migrate website to other hosting accounts. InfinityFree does not create or store any backups of free hosting accounts. It’s your responsibility to regularly create backups, and to store them somewhere safely. Backup your website files The best way to backup your website files is by downloading them using a desktop FTP client. Op…

> [@How to migrate your website to InfinityFree](https://forum.infinityfree.com/t/how-to-migrate-your-website-to-infinityfree/49315):
>
> If your website doesn’t use MySQL databases, moving your site is very easy. Simply upload all your files to the ‘htdocs’ folder on your hosting account with FTP or a file manager. If you have a PHP based website, check if it has any configuration files where a domain name or file path needs to be set. Update these values as required. If your website is using MySQL databases, you need to move the database contents as well and update the configuration of your website to use the database: Backup…

---

_[View the full topic](https://forum.infinityfree.com/t/transferring-the-website-from-one-domain-to-another/90169)._
