iglvzx/IGalvez.Autoindex/master/.htaccess - Htaccess File

iglvzx/IGalvez.Autoindex/master/.htaccess

RedirectMatch 404 /.git
RedirectMatch 404 /.logs
Redirect 404 /LICENSE
Redirect 404 /README.md

# Disable index.html per http://serverfault.com/a/434056
# If running Apache 2.4, you can set the following instead:
# DirectoryIndex disabled
DirectoryIndex jUTTqe6t5o0cOqWKwuBf6yWaIJr5KA5IT9IHsCYHihIwQWzEjmr6jIrpjlqQjKgN

Options +Indexes
Options +Includes

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

# Serve html as plain text
<FilesMatch "(?i).(htm|html)$">
    ForceType text/plain
</FilesMatch>

AddOutputFilterByType DEFLATE text/text text/html text/plain text/xml text/css application/x-javascript application/javascript application/json

IndexOptions Charset=UTF-8
IndexOptions FancyIndexing
IndexOptions SuppressHTMLPreamble
IndexOptions HTMLTable
IndexOptions VersionSort
IndexOptions SuppressDescription
IndexOptions SuppressIcon
IndexOptions SuppressRules
IndexOptions FoldersFirst
IndexOptions IgnoreCase
IndexOptions NameWidth=*

HeaderName /.autoindex/header.shtml
ReadmeName /.autoindex/footer.shtml

ErrorDocument 404 /.autoindex/error/404.shtml
ErrorDocument 403 /.autoindex/error/403.shtml
ErrorDocument 500 /.autoindex/error/500.shtml

IndexIgnore LICENSE
IndexIgnore README.md
IndexIgnore robots.txt

On Github License

Files

Download PDF of Htaccess file
DEFLATE, INCLUDES

Comments

Apache