longersoft/nextcms/master/.htaccess - Htaccess File

longersoft/nextcms/master/.htaccess

# The application environment
SetEnv APP_ENV pro

# Defines the rewriting rules required by ZF
DirectoryIndex index.php
RewriteEngine on
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule !.(ico|js|gif|jpeg|jpg|png|css|swf|flv)$ index.php

# Compress text, html, javascript, css and xml
# It requires the Apache's mod_deflate module
<IfModule mod_deflate.c>
  AddOutputFilterByType DEFLATE text/plain
  AddOutputFilterByType DEFLATE text/html
  AddOutputFilterByType DEFLATE text/xml
  AddOutputFilterByType DEFLATE text/css
  AddOutputFilterByType DEFLATE application/xml
  AddOutputFilterByType DEFLATE application/xhtml+xml
  AddOutputFilterByType DEFLATE application/rss+xml
  AddOutputFilterByType DEFLATE application/javascript
  AddOutputFilterByType DEFLATE application/x-javascript
</IfModule>

# Caching static resources
# It requires the Apache's mod_expires module
<IfModule mod_expires.c>
  ExpiresActive On
  ExpiresByType image/gif            A604800
  ExpiresByType image/jpg           A604800
  ExpiresByType image/jpeg         A604800
  ExpiresByType image/png            A604800
  ExpiresByType application/x-javascript  A604800
  ExpiresByType application/javascript  A604800
  ExpiresDefault              A604800
</IfModule>

On Github License

Files

Download PDF of Htaccess file
DEFLATE, ENV, REQUEST_FILENAME, static

Comments

Apache