ne-sachirou/c4se-web/master/.htaccess - Htaccess File


RewriteEngine On

# Some hosts may require you to use the `RewriteBase` directive.
# If you need to use the `RewriteBase` directive, it should be the
# absolute physical path to the directory that contains this htaccess file.
# RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f [OR]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^assets/ - [L]
RewriteRule ^ index.php [QSA,L]

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE application/javascript application/json text/css text/html text/javascript
<ifModule mod_expires.c>
  ExpiresActive On
  ExpiresByType application/javascript "access plus 10 minutes"
  ExpiresByType text/css               "access plus 10 minutes"
  ExpiresByType text/html              "access plus 10 minutes"
  ExpiresByType text/javascript        "access plus 10 minutes"

<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE image/gif image/jpeg image/png image/svg+xml image/webp
<ifModule mod_expires.c>
  ExpiresByType image/gif     "access plus 1 hour"
  ExpiresByType image/jpeg    "access plus 1 hour"
  ExpiresByType image/png     "access plus 1 hour"
  ExpiresByType image/svg+xml "access plus 1 hour"
  ExpiresByType image/webp    "access plus 1 hour"

<IfModule mod_mime.c>
  AddType application/font-woff .woff
  AddType font/eot              .eot
  AddType font/opentype         .otf
  AddType font/truetype         .ttf
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE application/font-woff font/eot font/opentype font/truetype
<ifModule mod_expires.c>
  ExpiresByType application/font-woff "access plus 1 hour"
  ExpiresByType font/eot              "access plus 1 hour"
  ExpiresByType font/opentype         "access plus 1 hour"
  ExpiresByType font/truetype         "access plus 1 hour"

On Github License


Download PDF of Htaccess file