List directories first in apache2 directory listing

Add the following to .htaccess:

# SET INDEX OPTIONS
Options +Indexes
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble


You are reading this post on Joel G Mathew’s tech blog. Joel's personal blog is the Eyrie, hosted here.