meodai/mod_autoindex.oh/master/.htaccess - Htaccess File

meodai/mod_autoindex.oh/master/.htaccess

# STRONG HTACCESS PROTECTION
<Files ~ "^.*.([Hh][Tt][Aa])">
 order allow,deny
 deny from all
</Files>

# DIRECTORY CUSTOMIZATION
# http://perishablepress.com/better-default-directory-views-with-htaccess/

<IfModule mod_autoindex.c>

 # SET INDEX OPTIONS
    IndexOptions +Charset=UTF-8 +FancyIndexing +IgnoreCase +FoldersFirst +XHTML +HTMLTable +SuppressRules +SuppressDescription +NameWidth=* +DescriptionWidth=* +IconsAreLinks +TrackModified +VersionSort

 # DEFAULT SORTING
    IndexOrderDefault Ascending Name

 # META VIEWPORT
    IndexHeadInsert "<meta name="viewport" content="width=device-width, initial-scale=1">"

 # THEME FILES
    HeaderName /OhSiteFolderPath/.theme/header.html
    ReadmeName /OhSiteFolderPath/.theme/footer.html
    IndexStyleSheet /OhSiteFolderPath/.theme/style.css

 # ICONS
    #AddIcon /OhSiteFolderPath/.theme/icons/blank.png ^^BLANKICON^^
    AddIcon /OhSiteFolderPath/.theme/icons/folder@2x.png ^^DIRECTORY^^
    AddIcon /OhSiteFolderPath/.theme/icons/folder_open@2x.png ..

    #VECTOR IMAGES
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_ai@2x.png .ai .eps .svg .svgz

    #ARCHIVES
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_archive@2x.png .7z .bz2 .cab .gz .tar .rar .zip

    #BINARIES AND EXECUTABLES
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_binary@2x.png .bin .hex .exe .sh

    #CSS
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_css@2x.png .css .sass .scss .less

    #FRONS
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_font@2x.png .ttf .woff .eot .otf

    #HTML
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_html@2x.png .html .xhtml .shtml .htm .URL .url .haml .jade .hbs .xml

    #IMAGES
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_image@2x.png .jpg .jpeg .jpe .ico .gif .png .psd .bmp .tiff .tif

    #JS
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_js@2x.png .js .json .coffee

    #PHP
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_php@2x.png .php .phtml

    #RUBY
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_ruby@2x.png .rb

    #DOCUMENTS
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_markdown@2x.png .md .txt .nfo
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_pdf@2x.png .pdf
    AddIcon /OhSiteFolderPath/.theme/icons/file_type_text@2x.png .doc .docx .docm .dot .dotx .dotm .log .msg .odt .pages .rtf .tex .wpd .wps

    #DEFAULT
    DefaultIcon /OhSiteFolderPath/.theme/icons/file_type_default@2x.png

</IfModule>

On Github License

Files

Download PDF of Htaccess file

Comments

Apache