armin-pfaeffle/async-image-loading-with-progress-events/master/.htaccess - Htaccess File

armin-pfaeffle/async-image-loading-with-progress-events/master/.htaccess

#
#
#
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 1 month"

  ExpiresByType text/html "access plus 1 month"
  ExpiresByType text/xml "access plus 0 seconds"
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"

  ExpiresByType image/ico "access plus 1 month"
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/jpg "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"

  ExpiresByType application/x-javascript "access plus 1 month"
  ExpiresByType application/xml "access plus 0 seconds"
  ExpiresByType application/json "access plus 0 seconds"
</IfModule>

#
# Komprimierung aktivieren (gzip)
#
<IfModule mod_deflate.c>
  <FilesMatch "\.(html|css|js|xml|php|txt)$">
    SetOutputFilter DEFLATE

     # Deactivate compression for buggy browsers
    BrowserMatch    ^Mozilla/4         gzip-only-text/html
    BrowserMatch    ^Mozilla/4.0[678] no-gzip
    BrowserMatch    bMSIE            !no-gzip !gzip-only-text/html
  </FilesMatch>
</IfModule>

#
#
#
Options +FollowSymLinks
IndexIgnore */*
RewriteEngine On

#
# www zu Beginn der Domain erzwingen
#
#RewriteCond %{HTTP_HOST} !^www. [NC]
#RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]

#
# if a directory or a file exists, use it directly
#
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

#
# otherwise forward it to index.php
#
#RewriteBase /
RewriteRule . index.php

On Github License

Files

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

Comments

Apache