Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to get my .htaccess file to list all files in the current directory, hide the 'last modified' column and also remove the link to "Parent Directory" all in the 'fancy' style.

My current file is:

Options +Indexes

Any help would be great! Thanks

share|improve this question
    
Great question! I had this exact same issue. –  Mike B Jan 21 '11 at 0:45

2 Answers 2

up vote 2 down vote accepted

The two options you would need to use, from the Apache Docs, are:

  • IndexOptions SuppressLastModified
  • IndexIgnore ..
share|improve this answer
    
Fantastic cheers Dave! –  Dawson Sep 17 '09 at 19:25

Are you using Apache? If so, this may be useful:

http://httpd.apache.org/docs/2.0/mod/mod%5Fautoindex.html#indexignore

share|improve this answer
    
Aha great, adding this hides "last modifed": IndexOptions +SuppressLastModified Just need to hide the link back to the parent directory, any thoughts? –  Dawson Sep 17 '09 at 19:22

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.