Limited Time Offer - from ₱35.00/month
00
DAYS
16
HOURS
59
MINUTES
20
SECONDS
Get Started
×

Knowledge base

Find information and articles about features, guides for troubleshooting,
and other useful information related to Hostinger's web hosting services.

How to setup Directory Listing

Modified on:
directory listing listing list of files htaccess

When a web browser is pointed to a directory on your website which does not have an index.html file in it, the files in that directory can be listed on a web page. To have the web server produce a list of files for such directories, use the below line in your .htaccess  (can be found in FTP -> public_html folder):

Options +Indexes

To have an error (403 - Forbidden) returned instead, use this line:

Options -Indexes

  • Easy Website Builder
  • 99.9% Uptime Guarantee
  • 24/7 Live Support
  • Powerful Control Panel
  • 30-Days Money-Back Guarantee
Limited Time Special Offer!
From
35
00
/mo
Save 90%
Get started