Matvey12542/drup/dev1_1/.htaccess - Htaccess File

Matvey12542/drup/dev1_1/.htaccess

<FilesMatch ".(engine|inc|info|install|make|module|profile|test|po|sh|.*sql|theme|tpl(.php)?|xtmpl)$|^(..*|Entries.*|Repository|Root|Tag|Template)$">
  Order allow,deny
</FilesMatch>
 
Options -Indexes
 
Options +FollowSymLinks
 
ErrorDocument 404 /index.php
 
DirectoryIndex index.php index.html index.htm
 
<IfModule mod_php5.c>
  php_flag magic_quotes_gpc                 off
  php_flag magic_quotes_sybase              off
  php_flag register_globals                 off
  php_flag session.auto_start               off
  php_value mbstring.http_input             pass
  php_value mbstring.http_output            pass
  php_flag mbstring.encoding_translation    off
</IfModule>
 
<IfModule mod_expires.c>
  ExpiresActive On
 
  ExpiresDefault A1209600
 
  <FilesMatch .php$>
    ExpiresActive Off
  </FilesMatch>
</IfModule>
 
<IfModule mod_rewrite.c>
  RewriteEngine on
 
  RewriteRule "(^|/)." - [F]
 
   RewriteBase /
 
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_URI} !=/favicon.ico
  RewriteRule ^(.*)$ /index.php?q=$1 [L,QSA]
 
  <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

Comments

Apache