Directory Listing Denied – This Virtual Directory Restricts Content Display Print

  • cPanel, Indexes, Error, Directory Listing Denied
  • 413

Are you encountering this error message when trying to access your website?

"Directory Listing Denied"

This virtual directory does not permit content to be displayed.

This issue often arises when directory indexing is disabled. If your website lacks a default index page, a 403 error may appear.

How to Fix This Issue

1. Enable Indexing – If directory indexing is turned off, you can enable it in cPanel's Index Manager by setting your domain's root folder to "Default System Setting."

cPanel - Advanced Section - Indexes

cPanel - Indexes - Edit

cPanel - Indexes - Save

2. Rename Your Home Page – Ensure your homepage file is named "index.html" or "index.php", as these are the standard filenames your website expects.

indexphp - Rename

3. Modify the Directory Index in .htaccess – If you prefer to keep a custom homepage name (e.g., html instead of index.html), you can configure the directory index code in your .htaccess file.

htaccess - Edit

By following these steps, you can resolve the issue and ensure your website loads correctly.


Was this answer helpful?

« Back