Commit updated .htaccess from Drupal scaffolding
This commit is contained in:
parent
0f3764bdca
commit
d69b6a9897
1 changed files with 5 additions and 12 deletions
|
@ -27,16 +27,9 @@ AddEncoding gzip svgz
|
||||||
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
|
# Drupal\Core\DrupalKernel::bootEnvironment() for settings that can be
|
||||||
# changed at runtime.
|
# changed at runtime.
|
||||||
|
|
||||||
# PHP 5, Apache 1 and 2.
|
# PHP 7, Apache 1 and 2.
|
||||||
<IfModule mod_php5.c>
|
<IfModule mod_php7.c>
|
||||||
php_value assert.active 0
|
php_value assert.active 0
|
||||||
php_flag session.auto_start off
|
|
||||||
php_value mbstring.http_input pass
|
|
||||||
php_value mbstring.http_output pass
|
|
||||||
php_flag mbstring.encoding_translation off
|
|
||||||
# PHP 5.6 has deprecated $HTTP_RAW_POST_DATA and produces warnings if this is
|
|
||||||
# not set.
|
|
||||||
php_value always_populate_raw_post_data -1
|
|
||||||
</IfModule>
|
</IfModule>
|
||||||
|
|
||||||
# Requires mod_expires to be enabled.
|
# Requires mod_expires to be enabled.
|
||||||
|
@ -167,9 +160,9 @@ AddEncoding gzip svgz
|
||||||
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
RewriteCond %{REQUEST_FILENAME}\.gz -s
|
||||||
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
RewriteRule ^(.*)\.js $1\.js\.gz [QSA]
|
||||||
|
|
||||||
# Serve correct content types, and prevent mod_deflate double gzip.
|
# Serve correct content types, and prevent double compression.
|
||||||
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1]
|
RewriteRule \.css\.gz$ - [T=text/css,E=no-gzip:1,E=no-brotli:1]
|
||||||
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1]
|
RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
|
||||||
|
|
||||||
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
<FilesMatch "(\.js\.gz|\.css\.gz)$">
|
||||||
# Serve correct encoding type.
|
# Serve correct encoding type.
|
||||||
|
|
Loading…
Add table
Reference in a new issue