Htaccess File

1forh/forh-template/master/src/.htaccess

DEFLATE, HTTP_HOST, HTTPS
# <IfModule mod_rewrite.c>
  # RewriteEngine On
  # RewriteCond %{HTTPS} !=on

  # Redirect http://www.example.com to http://example.com
  # RewriteCond %{HTTP_HOST} ^www.example.com$
  # RewriteRule ^/?$ "http://example.com/" [R=301,L]

  # Redirect from the `http://` to the `https://` version of the URL.
  # RewriteRule ^(.*)$ https://%{HTTP_HOST}/$1 [R=301,L]
# </IfModule>

# Set the expiration of the content cache to one week (in seconds)
Header set Cache-Control "max-age=604800, public, must-revalidate"

# Enable GZIP
# Check for GZIP at http://checkgzipcompression.com
<IfModule mod_deflate.c>
  <IfModule mod_filter.c>
    AddOutputFilterByType DEFLATE "application/atom+xml" 
                                  "application/javascript" 
                                  "application/json" 
                                  "application/ld+json" 
                                  "application/manifest+json" 
                                  "application/rdf+xml" 
                                  "application/rss+xml" 
                                  "application/schema+json" 
                                  "application/vnd.geo+json" 
                                  "application/vnd.ms-fontobject" 
                                  "application/x-font-ttf" 
                                  "application/x-javascript" 
                                  "application/x-web-app-manifest+json" 
                                  "application/xhtml+xml" 
                                  "application/xml" 
                                  "font/eot" 
                                  "font/opentype" 
                                  "image/bmp" 
                                  "image/svg+xml" 
                                  "image/vnd.microsoft.icon" 
                                  "image/x-icon" 
                                  "text/cache-manifest" 
                                  "text/css" 
                                  "text/html" 
                                  "text/javascript" 
                                  "text/plain" 
                                  "text/vcard" 
                                  "text/vnd.rim.location.xloc" 
                                  "text/vtt" 
                                  "text/x-component" 
                                  "text/x-cross-domain-policy" 
                                  "text/xml"
  </IfModule>
  <IfModule mod_mime.c>
        AddEncoding gzip svgz
  </IfModule>
</IfModule>
Exit mobile version