1. Knowledge Base
  2. >
  3. Results
  4. >
  5. How to Customize a Directory with Indexes

How to Customize a Directory with Indexes

Indexes can stop people from seeing a list of all your files in a folder (the Index of/ page that appears when you do not have an index.html file.)

If a directory on a site does not contain an index file, it will, by default, simply list every file in that directory in the visitor's browser. This is not always desirable, and the Indexes allows you to turn this feature off.

To customize a directory with Indexes:

  1. Log in to the cPanel
  2. Look for the Advanced section, then click on Indexes.

    HostGator - cPanel - Indexes

  3. Locate the domain name or subdomain you want to index from the list of directories.
  4. Click your domain or subdomain's Edit button.
    Note: The Edit button of the image below will give you the option to index the whole directory. To index a specific directory, make sure to click the domain or subdomain's Edit button.

    cPanel - Directory Privacy - Select Directory and Click Edit

  5. To disable directory indexing, change the setting to No Indexing.
    To enable directory indexing, change the setting to anything except No Indexing.

    HostGator - cPanel - Indexes - Set Indexing

  6. Click Save.
  7. A confirmation prompt will then appear. 
Need further assistance? Please contact us via phone or Live Chat so we can assist you!