logo

Black Friday
Sale

  •  99.9% Uptime
  •  Free Domain Name
  •  24/7 Live Support
  •  30-Days Money-Back Guarantee
Get Started

Up To

90

%

OFF

00
DAYS
12
HOURS
21
MINUTES
54
SECONDS
Black Friday Sale: Web Hosting
From £0.80 /Month!
See All Deals
×

Knowledge base

Find articles and information about all features, troubleshooting guides,
and other technical information on Hostinger's 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