February 4, 2019
February 4, 2019
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
Before you begin this guide you’ll need the following:
Log in to the cPanel of your hosting account and follow the instructions below:
index.html. Firstly, select ALL of the files and folders located in your directory by clicking Select All:
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.
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.
July 31 2020
Thank you for the tutorial! I tried this and everything worked perfectly in the subdomain, but after moving to the root domain, all of the styling is gone. I am not sure what is wrong as all of the css files are still there.
Replied on September 06 2020
Hey there Elisa! :) I am not fully sure about the code you are using, but for most CMS or custom codes, you will need to fix the backlinks in the code!