Created
June 13, 2017 22:38
-
-
Save styk-tv/be9b448905893c12041cbd15f0d01053 to your computer and use it in GitHub Desktop.
htaccess directory index
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Options +Indexes | |
<Files ~ "^.*\.([Hh][Tt][Aa])"> | |
order allow,deny | |
deny from all | |
</Files> | |
<IfModule mod_autoindex.c> | |
IndexOptions IgnoreCase FancyIndexing FoldersFirst NameWidth=* DescriptionWidth=* SuppressHTMLPreamble | |
IndexIgnore cgi-bin header.html footer.html .ftpquota | |
HeaderName header.html | |
ReadmeName footer.html | |
</IfModule> | |
<IfModule mod_headers.c> | |
Header set Cache-Control "no-cache, no-store, must-revalidate" | |
Header set Pragma "no-cache" | |
Header set Expires 0 | |
</IfModule> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment