Snippets → HTAccess → Fancy Indexing Fancy Indexing Chris Coyier on Sep 6, 2009 Adds fixed width fonts, file size and date, sort capability. Propagates to higher level directories. See example. IndexOptions FancyIndexing IndexOptions FoldersFirst IndexOptions NameWidth=*
Awesome!!!
I want to have this be true for the root web directory, but not one of the sub directories. Is there any way I could do this?
@Billy
You could put this htaccess file in the root and then in the subdir’s you would put a htaccess with the below contents
Options -Index
This works great to add header and footer to indexing, But how do you Include all sub directorys??
Options +Indexes
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=40% DescriptionWidth=* SuppressHTMLPreamble IconHeight=30 IconWidth=30 SuppressLastModified
IndexIgnore ..
IndexOrderDefault Descending Name
HeaderName inc/header.shtml
ReadmeName inc/footer.shtml
IndexIgnore header.shtml footer.shtml .htaccess inc
To use the same header/footer file for all subdirectories start the path with a /
eg. absolute path from the webroot.
Something like this:
HeaderName /inc/header.shtml
ReadmeName /inc/footer.shtml