How to Prevent a Directory index using .htaccess

How to Disable Indexing

You can prevent the index of your directories / Folders / Files from the indexing

Add the following line to your .htaccess file.

Options -Indexes
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to fix 502 Bad Gateway | Cloudflare and Nginx [Engintron]

When you want to point cloudflare nameservers to your working website with engintron you will...

How to remove mod_lsapi on cPanel

At the moment, that package has been removed from the EA4 repository and will no longer cause a...

How to rebuild user data files for cpanel

The userdata directory is one of the important directories of cPanel which stores the user...

Installing PageSpeed ​​Module for Nginx on CentOS 7

Installation guide for the PageSpeed ​​module, which is designed to automatically optimize the...