How to configure Directory Indexing in cPanel

By Jonathan Griffin. Editor, SEO Consultant, & Developer.

· 5 min read

The Directory Indexing feature in cPanel allows you to specify what to display in a directory when viewed on the web.

A web server is usually configured to display the following:

  • If present, a server will display the contents of an index file. Index files include index.php, default.html, and index.html.
  • If an index file is not present, the server will display a directory listing.

An example list of Index files and a screenshot of the default directory listing in cPanel can be found in the Frequently Asked Questions section.

How to Configure the Directory Settings

Before you manage your Index settings, you may wish to configure the default directory to display for the Indexes feature. You can also use these directory settings to find the relevant directory for a specific domain.

How to Configure the Indexes Settings

The Directory Indexing functionality is contained within the Indexes feature. The tutorial below takes you through the process of Configuring your Directory Indexing settings.

Frequently Asked Questions

What are Index Pages?

An Index Page is a file that automatically loads when a browser navigates to a directory on a web server.

Example Index files include:

index.php, index.php5, index.php4, index.php3, index.perl,, index.plx, index.ppl, index.cgi, index.jsp,, index.phtml, index.shtml, index.xhtml, index.html, index.htm, index.wml, Default.html, Default.htm, default.html, default.htm, home.html, home.htm, index.js.

What is the default cPanel Index configuration?

cPanel’s default indexes configuration will load an Index Page. If there is no Index Page then a list of files and directories will be displayed, along with the following information:

  • Name
  • Last modified
  • Size
  • Description

A screenshot of a web page with no Index Page, using the cPanel default settings is shown below:

Default cPanel Directory with no Index Page
Default cPanel Directory with no Index Page CREDIT: THE WEBMASTER

What do each of the Index Settings look like?

The different settings in the Index Manager look like the following:

  • No Indexing:

    Indexes Manager - No Indexing
    Indexes Manager - No Indexing CREDIT: THE WEBMASTER
  • Show Filename Only:

    Indexes Manager - Show Filename Only
    Indexes Manager - Show Filename Only CREDIT: THE WEBMASTER
  • Show Filename and Description:

    Indexes Manager - Show Filename and Description
    Indexes Manager - Show Filename and Description CREDIT: THE WEBMASTER