Skip to content

Instantly share code, notes, and snippets.

@bbog bbog/.htaccess
Created Jun 1, 2017

Embed
What would you like to do?
Custom mod autoindex
# STRONG HTACCESS PROTECTION
<Files ~ "^.*.([Hh][Tt][Aa])">
order allow,deny
deny from all
</Files>
# DIRECTORY CUSTOMIZATION
<IfModule mod_autoindex.c>
# SET INDEX OPTIONS
IndexOptions IgnoreCase FoldersFirst SuppressHTMLPreamble
# SPECIFY HEADER FILE
HeaderName /.header.html
# SPECIFY FOOTER FILE
ReadmeName /.footer.html
# IGNORE THESE FILES
IndexIgnore header.html footer.html favicon.ico .htaccess .ftpquota .DS_Store icons .log ,v ,t .?? ~ #
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.