How can I turn off directory indexing?

In the directory that you wish you turn off directory indexing, you can do it under Index Manager in the control panel or by creating an .htaccess file and include the following line:

IndexIgnore */*

To turn off indexing in all directories create a .htaccess file in your root/main directory (before public_html) and add the following line:

Options -Indexes


To enable it create an .htaccess file with the following line:

Options +Indexes
  • 460 Users Found This Useful

Was this answer helpful?

Related Articles

Cross Origin Request Error

When receiving a cross-origin / cross original request, CORS header 'Access-Control-Allow-Origin'...

Convert PDF to HTML Service

To convert your PDF files to html try using the following converter tool from Adobe:...

How can I redirect http to https?

Create an .htaccess file with the following contents and upload it to your public_html directory....

Show longer file names in directory/folder index

If you've ever wanted to show longer file names in your directory listing just create or edit an...

Password Protect Directories

Within control panel select Password Protection. Select the directory you would like to protect....