mod-autoindex

Simple script to replace Apache's mod_autoindex with a user-friendly directory listing

The Apache module mod_autoindex generates "directory indexes" that show users a crude hyperlinked list of the files and directories inside a directory (when there is no index.html or other DirectoryIndex file). I have a directory on an Apache webserver where I want to provide an automatic directory listing, including the full filenames,...

Password protecting AutoIndex but not static files with .htaccess

I have publicly accessible files on my webserver. I'd like to enable AutoIndexing (Options +Indexes) but I'd like to require a password in order to view these listings. I have no problem setting up the Auth but there are complications with the public files and the DirectoryIndex files in that if someone also asks for a directory, and t...

mod_autoindex does not respect mod_rewrite rules

I have a directory structure similar to: public_html/ example.com/ index.php subdir/ file.jpg I'm using shared hosting, so http://example.com maps to /public_html/ for its root, and I can't change this. I've added a mod_rewrite rule to handle this issue: RewriteEngine On RewriteRule ^$ example\.com/ [L] RewriteRule (....

.htaccess code to deny folder browsing

Can you please tell me how to deny folder browsing using .htaccess file ...

Enabling auto indexes in child directory of a directory with "IndexIgnore *"

I have a directory (ie /my_directory) with a .htaccess in it: Options -Indexes IndexIgnore * However I have a child directory (ie /my_directory/DESIGNS) and I want to be able to enable auto indexing in the DESIGNS directory, however all the documentation I've read doesn't seem to cover re-enabling ignored files. I can re-enable the in...