alegalliard/aug/master/.htaccess - Htaccess File

alegalliard/aug/master/.htaccess

<IfModule mod_expires.c>
  ExpiresActive on
  ExpiresDefault "access plus 720 hour"
</IfModule>

<IfModule mod_headers.c>
  # YEAR
  <FilesMatch ".(ico|gif|jpg|jpeg|png|flv|pdf)$">
    Header set Cache-Control "max-age=29030400"
  </FilesMatch>
  # WEEK
  <FilesMatch ".(swf)$">
    Header set Cache-Control "max-age=604800"
  </FilesMatch>
  # 45 MIN
  <FilesMatch ".(phtml|html|htm|txt|php)$">
    Header set Cache-Control "max-age=2700"
  </FilesMatch>
  <FilesMatch ".(js|css)$">
    Header set Cache-Control "public"
    Header set Expires "Thu, 15 Apr 2010 20:00:00 GMT"
    Header unset Last-Modified
  </FilesMatch>
</IfModule>

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/javascript
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE text/json
  AddOutputFilterByType DEFLATE text/php
  
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/rdf+xml
  AddOutputFilterByType DEFLATE application/json+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/php
  
  AddOutputFilterByType DEFLATE image/jpg
  AddOutputFilterByType DEFLATE image/jpeg
  AddOutputFilterByType DEFLATE image/gif
  AddOutputFilterByType DEFLATE image/png
  AddOutputFilterByType DEFLATE image/bmp
  
  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4.0[678] no-gzip
  BrowserMatch bMSIE !no-gzip !gzip-only-text/html 
  
</IfModule>

FileETag None
Options +FollowSymLinks

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteCond %{REQUEST_FILENAME} !-f

  RewriteRule !.(JPG|JPEG|BMP|php|js|ico|bmp|gif|jpg|jpeg|png|css|flv|swf|pdf|rdf|xml|rss|html|htm|csv|eot|woff|ttf|svg)$ index.php [L]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-gzip, REQUEST_FILENAME

Comments

Apache