Forum Moderators: phranque

Message Too Old, No Replies

directory listing

         

smallcompany

5:32 am on Mar 7, 2008 (gmt 0)

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



So, if directory listing is enabled, but I have index file inside it, is it still possible to get the listing?

My knowledge is that index file should load so directory listing would not show up, even if it’s not disabled.

Thanks

gergoe

12:36 pm on Mar 7, 2008 (gmt 0)

10+ Year Member



If a file defined with the DirectoryIndex directive can be found in a directory, then you can't make Apache list the directory's content.

You can play around with mod_rewrite, to emulate the working of index.php. Remove index.php to anything.php, add a RewriteRule, which internally rewrites the requests for /directory to anything.php, and leave the request for /directory/ untouched. quite of a tweaking (and source for a confusion), but I can't think of a better way.