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 into the cPanel. (How to Log into cPanel).
  2. Scroll down to the Advanced section.
  3. Click Indexes.

    HostGator - cPanel - Indexes

  4. Select the domain name or subdomain you want to edit from the list of directories.
  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. 
Please contact us via phone or Live Chat if you have any questions or require assistance.