One "work-around" for doing what you suggest would be to use the PHP programming language and write a php file that just list the directory.
That file can then be called using a redirect, meta-refresh tag, or an .htaccess handler for the index.html to either load the .php file (redirect or meta-refresh method), or parse it as a PHP file (.htaccess method).
There are *lots* of code snippets out there (google!) to do this in PHP, some simple, some more sophisticated.
At it's simplest (to me), you could create the following two files, and place them in your http://lgrossman.com/pics/ directory:
1) index.html -contents follows:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="content-type">
<title>Directory Listing -</title>
</head>
<body>
<?
/********************************************************************
* function that reads directory content and
* returns the result as links to every file in the directory
*
* toss it into any directory and get a list of links to every file
*
* This program is free software licensed under the
* GNU General Public License (GPL).
*
*********************************************************************/
function directory($result) {
$handle=opendir(".");
while ($file = readdir($handle)) {
if ($file == "." || $file == "..") { } else { print "<a href=$file>$file</a>
"; }
}
closedir($handle);
return $result;
}
?>
<b>Select the file you want to go to:</b>
<p>
<?
echo directory($result);
?>
</body>
</html>
2) .htaccess - contents follow
AddType application/x-httpd-php .html
Doing this will list each file in the directory as a link to itself. Granted, it doesn't show *all* the info (Date/time/filesize, etc) that a "raw" index listing does, but you get the idea.
Other code snippets out there do more; just find one you like the output of, or write your own, and go from there.
Of course, this presumes you have no problems *below* http://lgrossman.com/pics/ in the directory tree with .html files being parsed as .html
There may/probably are other ways to do this; this is just what popped into my mind first. Good Luck!
--rlparker
Edited by rlparker on 08/28/06 11:53 PM (server time).