sing-group/Markyt/master/.htaccess - Htaccess File

sing-group/Markyt/master/.htaccess

<IfModule mod_rewrite.c>
   RewriteEngine on
   RewriteRule    ^$ app/webroot/    [L]
   RewriteRule    (.*) app/webroot/$1 [L]
</IfModule>

<IfModule pagespeed_module>
    ModPagespeed off
</IfModule>

AddType font/opentype .otf
AddType font/eot .eot
AddType font/truetype .ttf
AddType font/woff .woff
AddType font/woff2 .woff2

<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresDefault "access plus 240 seconds"
  ExpiresByType text/html "access plus 1 seconds"
  ExpiresByType application/json "access plus 1 seconds"
  ExpiresByType image/gif "access plus 14 day"
  ExpiresByType image/svg+xml "access plus 14 day"
  ExpiresByType image/jpeg "access plus 14 day"
  ExpiresByType image/png "access plus 14 day"
  ExpiresByType text/css "access plus 2 day"
  ExpiresByType text/javascript "access plus 2 day"
  ExpiresByType application/x-javascript "access plus 2 day"
  ExpiresByType application/xml "access plus 2 day"
  ExpiresByType application/xhtml+xml "access plus 2 day"
  ExpiresByType font/truetype "access plus 20 day"
  ExpiresByType font/opentype "access plus 20 day"
  ExpiresByType font/eot "access plus 20 day"
  ExpiresByType font/woff "access plus 20 day"
  ExpiresByType font/woff2 "access plus 20 day"
  
</ifModule>

<ifModule mod_headers.c>
Header append Cache-Control "public"
</ifModule>

#<ifModule mod_gzip.c>
#mod_gzip_on Yes 
#mod_gzip_dechunk Ys 
#AddType image/svg+xml svg svgz
#AddEncoding gzip svgz
#mod_gzip_item_include file .(html?|txt|css|js|php|pl|svg|png|woff|woff2)$ 
#mod_gzip_item_include handler ^cgi-script$ 
#mod_gzip_item_include mime ^text/.* 
#mod_gzip_item_include mime ^application/x-_javascript_.* 
#mod_gzip_item_include mime ^image/.* 
#mod_gzip_item_include mime ^font/.* 
#mod_gzip_item_include mime ^application/.* 
#mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*  
#</ifModule>
# 

#################### 
# GZIP COMPRESSION # 
#################### 
<ifModule mod_deflate.c>
SetOutputFilter DEFLATE 
BrowserMatch ^Mozilla/4 gzip-only-text/html 
BrowserMatch ^Mozilla/4.0[678] no-gzip 
BrowserMatch bMSIE !no-gzip !gzip-only-text/html 
BrowserMatch bMSI[E] !no-gzip !gzip-only-text/html 

# compress text, html, _javascript_, css, xml: 
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/javascript
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE font/truetype
AddOutputFilterByType DEFLATE font/opentype
AddOutputFilterByType DEFLATE font/eot
AddOutputFilterByType DEFLATE font/woff2
AddOutputFilterByType DEFLATE application/octet-stream
</ifModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, no-gzip

Comments

Apache