mobiCMS/mobicms-core/develop/.htaccess - Htaccess File

mobiCMS/mobicms-core/develop/.htaccess

################################################################################
# mobiCMS Content Management System (http://mobicms.net)                       #
################################################################################

ErrorDocument 404 /404.html
AddDefaultCharset utf-8

# Prevent mobile network providers from modifying the website's content.
<IfModule mod_headers.c>
   Header set Cache-Control "no-transform"
   Header unset ETag
</IfModule>

<IfModule mod_rewrite.c>
  RewriteEngine On

  RewriteCond %{SCRIPT_FILENAME} -d [OR]
  RewriteCond %{SCRIPT_FILENAME} -f
  RewriteRule "(^|/)." - [F]

  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule .* index.php [L]

  <IfModule mod_headers.c>
    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).css $1.css.gz [QSA]

    RewriteCond %{HTTP:Accept-encoding} gzip
    RewriteCond %{REQUEST_FILENAME}.gz -s
    RewriteRule ^(.*).js $1.js.gz [QSA]

    RewriteRule .css.gz$ - [T=text/css,E=no-gzip:1]
    RewriteRule .js.gz$ - [T=text/javascript,E=no-gzip:1]

    <FilesMatch "(.js.gz|.css.gz)$">
      Header set Content-Encoding gzip
      Header append Vary Accept-Encoding
    </FilesMatch>
  </IfModule>
</IfModule>

On Github License

Files

Download PDF of Htaccess file
no-gzip, REQUEST_FILENAME, REQUEST_URI, SCRIPT_FILENAME

Comments

Apache