tskeeley/CVGHotelSystem/master/.htaccess - Htaccess File

tskeeley/CVGHotelSystem/master/.htaccess

ErrorDocument 403 /sitesupport/index.php

# Block 'hidden' files
<FilesMatch "^.(ht|svn|git)">
  Order allow,deny
  Deny from all
</FilesMatch>

# Don't show directory listings for URLs which map to a directory.
Options -Indexes

# Cache Control - From www.askapache.com
# 3 Month
<FilesMatch ".(flv|gif|jpg|jpeg|png|ico|swf)$">
  Header set Cache-Control "max-age=7257600"
</FilesMatch>
 
# 1 Week
<FilesMatch ".(js|css|pdf|txt)$">
  Header set Cache-Control "max-age=604800"
</FilesMatch>
 
# 2 Hours
<FilesMatch ".(html|htm|xml)$">
  Header set Cache-Control "max-age=7200, must-revalidate"
</FilesMatch>
 
# NONE
<FilesMatch ".(pl|php|cgi|spl)$">
  Header unset Cache-Control
  Header unset Expires
  Header unset Last-Modified
  FileETag None
  Header unset Pragma
</FilesMatch>

On Github License

Files

Download PDF of Htaccess file
Pragma

Comments

Apache