Can I rename my htdocs folder instead of moving all files when switching to a custom domain?
Hi,
I have a question about migrating from an InfinityFree subdomain to a custom domain.
My current website is hosted on an InfinityFree subdomain, and I’ve just purchased a custom domain that I want to use instead.
The problem is that my website contains about 1.31 GB of images, and I only have an Android phone to manage my files. Moving all of those files to a new document root would take a very long time.
I was wondering if there’s another way. Is it possible to simply rename the current document root (or htdocs folder) to match my custom domain, then remove the old subdomain afterwards, instead of moving all the files?
If not, is there any easier way to migrate a large website to a custom domain without copying all the files?
Thank you so much for your answer! I’ve been confused about this for a while because it’s my first time migrating a website to a custom domain. Your explanation really helped.
Under the hood, “moving” and “renaming” is exactly the same operation. Both operations are just “change the path of this file or folder”, and the distinction between moving and renaming is just visual because people consider them to be different things (moving is between folders, renaming is within folders).
In our official instructions, we recommend to “move” the htdocs folder, because unlike copying, it’s an instant operation. The reason it’s instant is because it simply changes the path of the htdocs folder to the new location.