X
X
Worldwide (English) TRY 0

Welcome

Sign in

Understanding the “Index of” Directory Listing

HomepageArticlesUnderstanding the “Index of” Directory Listing
Example of an Index of directory listing

Originally published: 2016-10-02

Technical review: 22 October 2026

Seeing “Index of /” usually means the server is listing files in a directory. It is not itself an application error code. In Apache, a default index file and an automatically generated directory listing are separate behaviours.

Why it appears

The expected start file may be missing from the correct document root, or configuration may expect a different filename. If directory listing is enabled, the server can generate a file list. See DirectoryIndex for index files and mod_autoindex for generated listings.

Resolution steps

  1. Check the domain's document root in the control panel.
  2. Verify that the application's start file is in the correct location with the expected name.
  3. In an Apache environment that permits it, Options -Indexes disables automatic listing. Back up the existing file first; roll back and consult the administrator if an error occurs.
  4. Test the main directory and subdirectories.

Is disabling listing enough?

No. Someone who knows a filename may still access it directly. Keep database dumps, private keys and backup archives outside the web root; rotate secrets exposed accidentally. A 403 or 404 can be appropriate. Do not return 200 for every request merely to hide an error.

For document-root or application setup assistance, check the support scope of your web hosting or WordPress hosting service.

ABOUT THE AUTHOR

Computer Programmer | Hostturka

A 2009 Kadir Has University graduate and owner of CND Medya, working in hosting, server administration, networking and web software.

Education, projects and professional background →

Copyright © 2026 All Rights Reserved
Top