I want to offer any of my files in a directory for easy access. Is there a way to simple provide a directory listing of all the files in a directory?

Directory browsing is turned off system-wide by default to allow site developers the privacy of their site structure and un-linked content. However, you do have the ability to selectively enable directory browsing in your site. Simple Solution

The method is simple. You need one file named: .htaccess (That's a dot, followed by htaccess as the file name suffix, there is no prefix to this file name.) In the file enter this one line of text: Options +Indexes That's all there is to it.

This short line of text simply tells the Apache web server to allow directory browsing, thereby permitting public browsing of all contents within the directory where this file appears. Keep in mind, however, that this includes all sub-directories and files contained within that directory.


BuyHTTP offer free continuous data protection for shared hosting, get started for $1

  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

Where can I find documentation for cPanel?

Online and downloadable documentation is available in different formats from the following link...

How do I block visitors referred by a specific domain?

Add this code to your .htaccess file. Change input\.com to the domain you're blocking. You will...

What is the path to the netPBM files?

You will need to download netPBM and upload it to your webspace to install it. The path will...

PhpMyAdmin - Wrong username/password. Access denied.

If you logged in to your control panel but unable to run phpmyadmin and you get this error...

How can I point a second domain name to my website?

You'll need to create a parked domain. You can find a tutorial on how to create a parked domain...