# Alloting a free domain name

**URL:** <https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636>\
**Category:** Hosting Support\
**Created:** [November 22, 2022, 5:00am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636 "2022-11-22T05:00:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anon59164889](https://forum.infinityfree.com/letter_avatar/anon59164889/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon59164889](https://forum.infinityfree.com/u/anon59164889)\
**Post date:** [November 22, 2022, 5:00am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/1 "2022-11-22T05:00:39Z")

</div>

I accidentally deleted my free domain name. Right now my account has no any domain name, custom or subdomain, and hence I can’t access my website.  
I tried alloting new custom domain (which I already have) and subdomain. But it creates a new folder named with the new domain with separate htdocs folder in it. This new domain has /newdomain/htdocs as document root.  
I just want to allot new domain name to my default htdocs so that it has /htdocs as document root.  
Any help is appreciated.

---

<div class="post-metadata">

**Author:** ![anon59164889](https://forum.infinityfree.com/letter_avatar/anon59164889/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon59164889](https://forum.infinityfree.com/u/anon59164889)\
**Post date:** [November 22, 2022, 5:06am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/2 "2022-11-22T05:06:28Z")

</div>

I also tried parking domain. But it is useless as it needsat least one domain to park to.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [November 22, 2022, 5:09am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/3 "2022-11-22T05:09:54Z")

</div>

You have to shift the files from `/htdocs` to `newdomain/htdocs`.  
You also have to update config files and database(s) accordingly  
If you find it too troublesome, just create a new hosting account with the new domain.  
It should start from `/htdocs`

---

<div class="post-metadata">

**Author:** ![anon59164889](https://forum.infinityfree.com/letter_avatar/anon59164889/32/5_5575768a8748004e209b776fc1b2916d.png) [@anon59164889](https://forum.infinityfree.com/u/anon59164889)\
**Post date:** [November 22, 2022, 5:37am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/4 "2022-11-22T05:37:49Z")

</div>

Thanks for the reply.  
Option 1. I find it too complicated. But do we have any tutorial or documentation on how we can update config and databases?  
Option 2. In that case, I still have to upload my old htdocs folder to the new one. Its quite time consuming. I already tried that and unfortunately it didn’t work.

---

<div class="post-metadata">

**Author:** ![KangJL](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/kangjl/32/12130_2.png) [@KangJL](https://forum.infinityfree.com/u/KangJL)\
**Post date:** [November 22, 2022, 5:49am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/5 "2022-11-22T05:49:58Z")

</div>

> [@anon59164889](#):
>
> Option 1. I find it too complicated

Well, upgrade to premium hosting. They will do it for you

> [@anon59164889](#):
>
> how we can update config and databases?

This

> [@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…

> [@anon59164889](#):
>
> unfortunately it didn’t work.

What did not work?

---

<div class="post-metadata">

**Author:** ![system](https://infinityfree-forum-uploads.s3.dualstack.eu-central-1.amazonaws.com/original/3X/b/0/b024fd3fa88bae093c9576e55c2c94e33f890206.svg) [@system](https://forum.infinityfree.com/u/system)\
**Post date:** [November 29, 2022, 5:49am UTC](https://forum.infinityfree.com/t/alloting-a-free-domain-name/68636/6 "2022-11-29T05:49:59Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
