How to use Indexes to index folders in cPanel
Added: 10.03.2014 23:26:29 Last updated: 10.01.2017 16:49:47
This guide details how to proceed to start using "Indexes" in cPanel.
Let’s say you have a folder named "photos". If you do not have any index.html file in this folder, visitors can see a list of the contents of the folder if this person types the address in the web browser. A way to prevent this is to start using "Indexes" which can turn off indexing in the folder.
Click on the icon for "Indexes" as shown in the screenshot below:
- Choose the placement for the folder you want to make changes to. Here we choose "public_html", which is the root folder for your main domain.
- If you have other domains you can change the root folder by using the interface on settings.
- Choose the domain or folder you want to manage the indexing for.
- Save the changes
To continue, we must pick a folder we want to set indexing on/off for. In the example below we choose the folder called "pictures" by clicking on it.
- Choose "No Indexing" to prevent visitors from being able to see the contents of the folder.
- Click "Save" to save the changes.
Indexing is now turned off for this folder. To go back to the "Indexes" menu, click "Go back".
The results of turning off indexing for a folder will look like this in a web browser:
If you want to turn on indexing for the chosen folder, click "Advanced indexing (file name and description)" and click "Save".
Indexing is now turned on for the chosen folder. The result of turning on indexing for a folder will look like this in a web browser:
You have now been through how to use indexing for folders via cPanel.