titomiguelcosta/DreamerWebsite/master/web/.htaccess - Htaccess File

titomiguelcosta/DreamerWebsite/master/web/.htaccess

<IfModule mod_rewrite.c>
    RewriteEngine On

    #<IfModule mod_vhost_alias.c>
    #    RewriteBase /
    #</IfModule>

    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^(.*)$ index.php [QSA,L]
</IfModule>
<IfModule mod_expires.c>
  # page speed improvement
  ExpiresActive On
  ExpiresDefault "access plus 2 weeks"
  ExpiresByType image/gif "now plus 2 years"
  ExpiresByType image/png "now plus 2 years"
  ExpiresByType image/jpeg "now plus 2 years"
  ExpiresByType image/x-icon "now plus 2 years"
  ExpiresByType image/vnd.microsoft.icon "now plus 2 years"
  ExpiresByType application/x-shockwave-flash "now plus 2 years"
  ExpiresByType text/css "now plus 2 months"
  ExpiresByType text/javascript "now plus 2 months"
</IfModule>

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/html text/plain text/xml text/css text/javascript

  BrowserMatch ^Mozilla/4 gzip-only-text/html
  BrowserMatch ^Mozilla/4.0[678] no-gzip
  BrowserMatch bMSIE !no-gzip !gzip-only-text/html

  <FilesMatch ".(js|css|png)(?v=(d+))?$">
    SetOutputFilter DEFLATE
  </FilesMatch>
</IfModule>

On Github License

Files

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

Comments

Apache