Forum Moderators: phranque

Message Too Old, No Replies

Directory Index question. How can I remove the heading

         

mwarchut

4:26 am on Sep 23, 2010 (gmt 0)

10+ Year Member



I have a virtual host I am setting up where we want to allow directory indexes to be read but we are doing internal redirects. We would like to remove the "Index of ...." at the top. We can remove it from the title bar with a new HEADER.html but that doesn't cover the heading in the body that says "Index of /blah/blah/blah"

Is there any way to remove that?

TIA

Mike

tangor

5:01 am on Sep 23, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Is there a reason for the complexity of internal redirects? In most cases what you want to serve is something that looks like html and no redirects, ie. a PAGE.

BTW Welcome to WebmasterWorld!

mwarchut

2:54 pm on Sep 23, 2010 (gmt 0)

10+ Year Member



We don't want to serve a page. We just want to serve the directory index so that files can be picked up. There will be multiple users with their own directories and I just want to mask the path of the directory so that they won't try and get into other users directories.

jdMorgan

12:01 pm on Sep 24, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you can't accomplish this using an alternate header (see the mod_autoindex HeaderName directive) and a custom header file, then the alternative is to internally rewrite (mod_rewrite) all index requests to a script that creates and outputs the HTML directory listings using PERL or PHP, for example.

Jim