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

Share this page:

Was this article useful? Have any suggestions or improvements to the information?

Also Read

Create a 410 Redirect for Missing Files

A redirect which is often forgot about is the 410 redirect. This is search engine friendly in the...

What are these .htaccess files that keep popping up?

.htaccess files are default files the server uses to perform certain tasks. Features such as...

Enable AllowOverride

If you have an application that requires allowoverride enabled, create an .htaccess file and...

What is a Top-Level-Domain (TLD)?

TLD stands for Top Level Domain. This includes any domain names which suffix is .com, .net, .org,...

Setting up Zend Framework

When setting up Zend Frameworks in your hosting account be sure to upload your frameworks folder...