Knowledge Base
Categories: Advanced
How to Customize a Directory with Indexes
Indexes can prevent visitors from viewing a list of files in a folder (the Index of/ page that appears when an index.html file is not present).
If a directory on a website does not contain an index file, the server will, by default, display a list of all files in that directory in the visitor's browser.
Customize a Directory with Indexes
To customize a directory with Indexes:
Configure directory settings
- Log in to cPanel.
- Look for the Advanced section, then click on Indexes.

- Click Settings on the Indexes page.

- Select the location from which you want to begin navigation:

- Home: Begin navigation in the home directory for the domain.
- Web Root: Begin navigation in the document root for the account's primary domain.
- Document Root for: Select the domain that corresponds to the document root in which you want to begin navigation.
- (Optional) Select Always open this directory in the future to automatically open the selected location whenever you access the Indexes interface.
- Click Save Changes.
Manage index settings
- Navigate to the folder or subfolder you want to configure.
- Click a folder icon or folder name to open the directory.

- Click Up One Level to move up one directory level.
- Click Home to return to the home directory.
- Click a parent directory to view and select its subdirectories.

- Click a folder icon or folder name to open the directory.
- Click Edit in the Actions column for the directory or subdirectory you want to configure.
- Select the desired index setting:

- Inherit: Uses the parent directory's index setting. If no parent setting exists, the system default is used.
- No Indexing: Prevents the server from displaying directory contents.
- Show Filename Only: Displays a list of filenames only.
- Show Filename and Description: Displays filenames and additional details, such as file size and file type.
- Click Save.
The selected index setting will appear in the Index Type column of the Indexes interface.
Did you find this article helpful?