stevesouders/jdrop/master/.htaccess - Htaccess File


# Make home the default
DirectoryIndex home

Options -Indexes

# Add a far future Expires header to .gif, .jpg, .css and .js.
<FilesMatch ".(png|gif|jpg|js|css|ico)$">
  ExpiresActive On
  ExpiresDefault "access plus 10 years"
  Header set ETag ""

# Compress html, XML, css and js and fonts
AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css application/x-javascript application/javascript font/ttf application/octet-stream

<FilesMatch "(about|admin|appregister|apps|devdocs|example|export|home|logout|myjson|oauth|public|publish|remove|save|view|google|twitter)">
  SetHandler application/x-httpd-php5
  Header set Cache-Control "no-cache"

<FilesMatch "(admin|appregister)">
  AuthType Basic 
  AuthUserFile /home/sowrock/
  AuthName "Restricted" 
  require valid-user

<FilesMatch "checkauth.js">
  SetHandler application/x-httpd-php5
  Header set Content-Type "application/javascript"
  Header set Cache-Control "no-cache"
  Header set Expires ""

On Github License


Download PDF of Htaccess file
DEFLATE, no-cache