Fancy Indexing

Adds fixed width fonts, file size and date, sort capability. Propagates to higher level directories. See example.

IndexOptions FancyIndexing
IndexOptions FoldersFirst
IndexOptions NameWidth=*


  1. User Avatar


  2. User Avatar
    Bob Jonson
    Permalink to comment#

    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?

    • User Avatar
      Permalink to comment#


      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

  3. User Avatar
    Permalink to comment#

    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

    • User Avatar
      Permalink to comment#

      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

Leave a Comment

Posting Code!

You may write comments in Markdown. This makes code easy to post, as you can write inline code like `<div>this</div>` or multiline blocks of code in triple backtick fences (```) with double new lines before and after.

Code of Conduct

Absolutely anyone is welcome to submit a comment here. But not all comments will be posted. Think of it like writing a letter to the editor. All submitted comments will be read, but not all published. Published comments will be on-topic, helpful, and further the discussion or debate.

Want to tell us something privately?

Feel free to use our contact form. That's a great place to let us know about typos or anything off-topic.