Feb 04, 2019
How to Move Website From a Subfolder to the Base Domain via File Manager
Hosting users that are just starting out often encounter the so-called “Index of” issue, which manifests when they visit their website via their domain name just after uploading their website. Instead of being greeted with their newly uploaded website, they see a directory listing, which looks similar to this:
In this tutorial, you will learn how to quickly resolve this issue and move your website to the proper directory, which is called public_html, also known as the
What you’ll need
Before you begin this guide you’ll need the following:
- Access to the cPanel of your hosting account.
Moving your website from a subfolder to your base domain via File Manager
Log in to the cPanel of your hosting account and follow the instructions below:
- Click on the File Manager icon, located under the Files category.
- Once inside the File Manager, open the public_html directory.
- Open the subfolder that you see inside the public_html directory (in our case, it is wordpress) .
- You should see all of your website’s files. You will know if you are in the right place if you see a file named
index.html. Firstly, select ALL of the files and folders located in your directory by clicking Select All:
- Now, right-click one of them and select MOVE.
- In the next prompt, specify the location where you would like the files to be moved. In our case, this is
- After the files are moved, navigate back to public_html. It is advised to remove the leftover files and folders, which, in our example, are
wordpressfolder (which should now be empty). Select both of these items by using CTRL+Left Click and then click DELETE. This will remove the two unneeded items. You can also remove them one-by-one if you wish.
- At this point, we should check inside public_html directory and see if all of your website’s files are present. In our example, they are all present.
- All that remains is to access your website and check if everything works correctly. Simply type in your domain name in your browser, such as http://www.domainname.com/, and check if your website works to your satisfaction. In our example, we see the default WordPress installation page, which means we successfully uploaded our website and now we are able to proceed with installing WordPress.
We learned how to move your website from a subfolder to the document root (the public_html directory). Simple websites that have just been uploaded can be moved via the method described in this tutorial.
It is useful to note that if you have already installed a software package (for example, WordPress) into a subfolder such as /wp/, it is usually much easier to delete the installation and then re-install it into public_html , rather than moving it by hand, as such operations require users to update configuration files and other settings.