Why You’re Seeing "Index of /" Instead of Your Website

If you're seeing an "Index of /" page listing files or folders when visiting your website, it usually means one of the following is wrong with how your files are named or uploaded

Evans

Last Update 2 months ago

Reason 1: Missing Homepage File (index.html, index.php, etc.)


Web servers look for a default homepage file (typically one of the following):


  • index.html
  • index.htm
  • index.php


If none of these files exist, the server doesn't know which file to load first—so it shows a list of files instead.


Important: File names are case-sensitive.
Index.html or INDEX.HTML will not work. 

Make sure the file name is all lowercase (e.g. index.html).

 Reason 2: Website Uploaded Inside a Subfolder


You may have uploaded your entire website inside a folder within the public_html directory. 


This results in:


Incorrect structure:

public_html/your-folder/index.html


The Correct structure is:

public_html/index.html


How to Fix?


Move the contents from inside the folder directly into the public_html directory. 


Do not upload the entire folder—just the files and subfolders it contains.


Reason 3: Files Uploaded Outside public_html Folder


If you see the "Index of /" page and no files at all, your site files may have been uploaded outside the public_html directory.


How to Fix?


  1. Log in to your hosting control panel (e.g., cPanel or DirectAdmin).

  2. Open the File Manager.

  3. Move all your site files into the public_html/ folder.

  4. Refresh your website in the browser.

In summary:

Problem
Cause
Solution
"Index of /" with file listMissing index.html or index.phpUpload a properly named index file
"Index of /" showing a folderUploaded a folder instead of its contentsMove contents directly to public_html
"Index of /" with no filesFiles uploaded outside public_htmlMove files into public_html

Was this article helpful?

1 out of 1 liked this article

Still need help? Message Us