searchfirst/Lenore/development/app/webroot/.htaccess - Htaccess File

searchfirst/Lenore/development/app/webroot/.htaccess

#HTML5 Boilerplate
<IfModule mod_setenvif.c>
  <IfModule mod_headers.c>
    BrowserMatch MSIE ie
    Header set X-UA-Compatible "IE=Edge,chrome=1" env=ie
  </IfModule>
</IfModule>
<IfModule mod_headers.c>
  Header append Vary User-Agent
</IfModule>
<FilesMatch ".(ttf|otf|eot|woff|font.css)$">
  <IfModule mod_headers.c>
    Header set Access-Control-Allow-Origin "*"
  </IfModule>
</FilesMatch>
AddType video/ogg                      ogg ogv
AddType video/mp4                      mp4
AddType video/webm                     webm
AddType     image/svg+xml              svg svgz 
AddEncoding gzip                       svgz
AddType application/vnd.ms-fontobject  eot
AddType font/truetype                  ttf
AddType font/opentype                  otf
AddType font/woff                      woff
AddType image/vnd.microsoft.icon       ico
AddType image/webp                     webp
AddType text/cache-manifest            manifest
AddType text/x-component               htc
AddType application/x-chrome-extension crx
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/css application/json
  AddOutputFilterByType DEFLATE text/javascript application/javascript application/x-javascript 
  AddOutputFilterByType DEFLATE text/xml application/xml text/x-component
  <FilesMatch ".(ttf|otf|eot|svg)$" >
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>
<IfModule mod_expires.c>
  #Header set Cache-Control "public"
  #ExpiresActive on
  #ExpiresDefault                          "access plus 1 month"
  #ExpiresByType text/cache-manifest       "access plus 0 seconds"
  #ExpiresByType text/html                 "access plus 0 seconds"
  #ExpiresByType text/xml                  "access plus 0 seconds"
  #ExpiresByType application/xml           "access plus 0 seconds"
  #ExpiresByType application/json          "access plus 0 seconds"
  #ExpiresByType application/rss+xml       "access plus 1 hour"
  #ExpiresByType image/vnd.microsoft.icon  "access plus 1 week" 
  #ExpiresByType image/gif                 "access plus 1 month"
  #ExpiresByType image/png                 "access plus 1 month"
  #ExpiresByType image/jpg                 "access plus 1 month"
  #ExpiresByType image/jpeg                "access plus 1 month"
  #ExpiresByType video/ogg                 "access plus 1 month"
  #ExpiresByType audio/ogg                 "access plus 1 month"
  #ExpiresByType video/mp4                 "access plus 1 month"
  #ExpiresByType video/webm                "access plus 1 month"
  #ExpiresByType font/truetype             "access plus 1 month"
  #ExpiresByType font/opentype             "access plus 1 month"
  #ExpiresByType font/woff                 "access plus 1 month"
  #ExpiresByType image/svg+xml             "access plus 1 month"
  #ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  #ExpiresByType text/css                  "access plus 1 month"
  #ExpiresByType application/javascript    "access plus 1 month"
  #ExpiresByType text/javascript           "access plus 1 month"
</IfModule>
FileETag None
Options -MultiViews 
AddDefaultCharset utf-8
AddCharset utf-8 .html .css .js .xml .json .rss
ServerSignature Off
#/HTML5 Boilerplate

<IfModule mod_rewrite.c>
  RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteRule ^(.*)$ index.php?url=$1 [QSA,L]
  RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
  RewriteRule .* - [E=HTTP_IF_NONE_MATCH:%{HTTP:If-None-Match}]
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, If-Modified-Since, If-None-Match, REQUEST_FILENAME

Comments

Apache