tww-project/BigTree-CMS/master/site/.htaccess - Htaccess File

tww-project/BigTree-CMS/master/site/.htaccess

<IfModule mod_deflate.c>
  <IfModule mod_setenvif.c>
    <IfModule mod_headers.c>
      SetEnvIfNoCase ^(Accept-EncodXng|X-cept-Encoding|X{15}|~{15}|-{15})$ ^((gzip|deflate)s*,?s*)+|[X~-]{4,13}$ HAVE_Accept-Encoding
      RequestHeader append Accept-Encoding "gzip,deflate" env=HAVE_Accept-Encoding
    </IfModule>
  </IfModule>
  <IfModule mod_mime.c>
    AddEncoding gzip svgz
  </IfModule>
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" 
      "application/javascript" 
      "application/json" 
      "application/ld+json" 
      "application/manifest+json" 
      "application/rss+xml" 
      "application/vnd.geo+json" 
      "application/vnd.ms-fontobject" 
      "application/x-font-ttf" 
      "application/x-web-app-manifest+json" 
      "application/xhtml+xml" 
      "application/xml" 
      "font/opentype" 
      "image/svg+xml" 
      "image/x-icon" 
      "text/cache-manifest" 
      "text/css" 
      "text/html" 
      "text/plain" 
      "text/vtt" 
      "text/x-component" 
      "text/xml"
  </IfModule>
</IfModule>

<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif "access plus 1 month"
  ExpiresByType image/png "access plus 1 month"
  ExpiresByType image/jpeg "access plus 1 month"
  ExpiresByType text/css "access plus 1 month"
  ExpiresByType text/javascript "access plus 1 month"
  ExpiresByType application/x-javascript "access plus 1 month"
  ExpiresByType application/x-shockwave-flash "access plus 1 month"
  
  ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
  ExpiresByType font/ttf "access plus 1 month"
  ExpiresByType font/otf "access plus 1 month"
  ExpiresByType font/x-woff "access plus 1 month"
  ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>

<IfModule mod_headers.c>
  <FilesMatch ".(ttf|otf|eot|woff)$">
    Header set Access-Control-Allow-Origin "*"
  </FilesMatch>

  Header set X-UA-Compatible "IE=edge"
  <FilesMatch ".(appcache|atom|crx|css|cur|eot|f4[abpv]|flv|geojson|gif|htc|ico|jpe?g|js|json(ld)?|m4[av]|manifest|map|mp4|oex|og[agv]|opus|otf|pdf|png|rdf|rss|safariextz|svgz?|swf|topojson|tt[cf]|txt|vcf|vtt|webapp|web[mp]|woff2?|xml|xpi)$">
    Header unset X-UA-Compatible
  </FilesMatch>
  
  Header set X-Content-Type-Options "nosniff"
  Header set X-XSS-Protection "1; mode=block"
  Header set X-Permitted-Cross-Domain-Policies "master-only"
</IfModule>

AddType image/svg+xml svg
AddType video/ogg .ogv
AddType video/mp4 .mp4
AddType video/webm .webm

IndexIgnore */*

Options -MultiViews

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?bigtree_htaccess_url=$1 [QSA,L]

RewriteRule .* - [E=HTTP_IF_MODIFIED_SINCE:%{HTTP:If-Modified-Since}]
RewriteRule .* - [E=HTTP_BIGTREE_PARTIAL:%{HTTP:BigTree-Partial}]

php_flag short_open_tag On
php_flag magic_quotes_gpc Off

On Github License

Files

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

Comments

Apache