Skip to content
Server and cPanel3 min read

An "Index of /" file list shows instead of your website

Index of /

Short answer

An Index of / page means the server found no index.html or index.php in the folder your domain points to, so it listed the folder's contents instead. Usually the site ended up in a subfolder after extracting a ZIP, the main file has a different name such as Index.html or home.html, or you uploaded a React project instead of its dist folder.

ArabyHost teamLast updated: ShareWhatsAppXLinkedIn
Contents
  1. Read the list: what do you see?
  2. Causes and fixes
  3. Stop folder listings
  4. How to confirm it is fixed
  5. On ArabyHost

Instead of your design you see a plain white page titled Index of / with a table of file and folder names, dates and sizes. It is not an error page. It is the server saying “this folder has no home page, so here is what is in it”. The list itself usually tells you why.

Read the list: what do you see?

What the list shows Likely cause
One folder such as my-site/ or website-main/ The site is in a subfolder after extracting a ZIP
Index.html, home.html or main.html The main page has a name the server does not look for
package.json, src/, node_modules/ You uploaded a React or Vite project, not its build
app/, public/, artisan A Laravel project with the domain pointing at the project root
Only a .zip file You have not extracted it yet

Causes and fixes

1. The site is in a subfolder

Zip a folder on your computer, extract it in public_html, and you get public_html/my-site/index.html. Open File Manager, go into the subfolder, click Select All, then Move, enter /public_html and confirm. Delete the empty folder afterwards. Next time, zip the files inside the folder, not the folder itself.

2. There is no file called index

The server looks for specific names such as index.php, index.html and index.htm, in lowercase. Index.html is not recognised, because Linux is case-sensitive. Rename it in File Manager (right-click, Rename). To use another name, add to your .htaccess file:

DirectoryIndex home.html index.html index.php

3. You uploaded source code instead of the build

React, Vue and Vite projects need npm run build on your computer first; then you upload only the contents of dist or build. See blank page after deploying React.

4. The domain points to a different folder

Every domain and subdomain has its own folder, the Document Root. Open Domains in cPanel and check the Document Root column: an addon domain may point to public_html/example.com, not public_html. Upload there or change the path. For Laravel, it must point to the project’s public folder, as in the Laravel deployment guide.

5. The ZIP was not fully extracted

If you see only the archive, or just a few files, extraction never ran or failed. See ZIP upload or extract fails.

Stop folder listings

Once fixed, stop the server from listing any folder without an index file, so sensitive files are never exposed. Add this line at the top of .htaccess in public_html:

Options -Indexes

Or in cPanel open Indexes and choose No Indexing for the folder. Folders without an index file then return a 403 error instead of a list, which is what you want.

How to confirm it is fixed

Open the domain in a private window: your home page should load. Then open a folder URL such as example.com/images/: you should get a 403, not a file list.

On ArabyHost

You move and rename files and edit .htaccess in File Manager from the panel, and LiteSpeed reads the file the way Apache does. If you upload a ZIP, make sure index.html or index.php ends up directly inside public_html, as in the upload steps. If the page does not change, ask the Araby AI assistant in the panel to explain why.

FAQ

Is an Index of page a security risk?

Yes, when it exposes files nobody should see, such as config files, backups or a ZIP of the whole site. Fix the cause, then block listings with Options -Indexes in .htaccess.

Why do some people get Index of and others a 403?

Same cause: no index file. Some servers list the folder; others are set to block listings and answer 403 Forbidden.

My main page is called home.html. Must I rename it?

Renaming it to index.html is simplest. To keep the name, add DirectoryIndex home.html to .htaccess.

Useful? Share it with someone who needs it:WhatsAppXLinkedIn

Read next

Ready to put your idea online?

Fast, isolated hosting, support that understands you, and an AI assistant that fixes problems with you.