View Full Version : linking directory listing from index file
djtecha
June 2nd, 2007, 01:04 AM
So I have a webserver up and running, but I would like to have an opening page simply explaing the rules and what-not, but I can't figure out how to make a link in the index file to go to the directoy listing. so it shows up as a bunch of files.
MJN
June 4th, 2007, 06:33 AM
I'm not sure if there is a way to force an auto-index in the presence of a valid index file.
Unless I have misunderstood, how about just moving your files to another (sub)directory and having no index file in it? Hence you'd just need to link to that directory/ and you'd get the list of files.
Altenative options might be to use the HeaderName directive (http://httpd.apache.org/docs/2.0/mod/mod_autoindex.html#headername) to insert text at the beginning of an autoindex, or perhaps to use server-side includes to show a directory listing (ls output suitably parsed and hyperlinked) within another page?
Mathew
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.