123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182 |
- <FilesMatch "\.(engine|inc|install|make|module|profile|po|sh|.*sql|theme|twig|tpl(\.php)?|xtmpl|yml)(~|\.sw[op]|\.bak|\.orig|\.save)?$|^(\.(?!well-known).*|Entries.*|Repository|Root|Tag|Template|composer\.(json|lock)|web\.config)$|^#.*#$|\.php(~|\.sw[op]|\.bak|\.orig|\.save)$">
- <IfModule mod_authz_core.c>
- Require all denied
- </IfModule>
- <IfModule !mod_authz_core.c>
- Order allow,deny
- </IfModule>
- </FilesMatch>
- Options -Indexes
- DirectoryIndex index.php index.html index.htm
- AddType image/svg+xml svg svgz
- AddEncoding gzip svgz
- <IfModule mod_php7.c>
- php_value assert.active 0
- </IfModule>
- <IfModule mod_expires.c>
-
- ExpiresActive On
-
- ExpiresDefault A1209600
- <FilesMatch \.php$>
-
-
-
-
-
- ExpiresActive Off
- </FilesMatch>
- </IfModule>
- <IfModule !mod_rewrite.c>
- FallbackResource /index.php
- </IfModule>
- <IfModule mod_rewrite.c>
- RewriteEngine on
-
-
-
- RewriteRule ^ - [E=protossl]
- RewriteCond %{HTTPS} on
- RewriteRule ^ - [E=protossl:s]
-
-
- RewriteRule ^ - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
-
-
-
-
-
-
-
-
-
-
-
-
-
- RewriteRule "/\.|^\.(?!well-known/)" - [F]
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- RewriteCond %{REQUEST_URI} ^(.*)?/(install.php) [OR]
- RewriteCond %{REQUEST_URI} ^(.*)?/(rebuild.php)
- RewriteCond %{REQUEST_URI} !core
- RewriteRule ^ %1/core/%2 [L,QSA,R=301]
-
- RewriteRule ^core/install.php core/install.php?rewrite=ok [QSA,L]
-
-
- RewriteCond %{REQUEST_FILENAME} !-f
- RewriteCond %{REQUEST_FILENAME} !-d
- RewriteCond %{REQUEST_URI} !=/favicon.ico
- RewriteRule ^ index.php [L]
-
-
-
-
-
- RewriteCond %{REQUEST_URI} !/core/[^/]*\.php$
-
- RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?.php
-
-
-
- RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$
-
-
- RewriteRule "^(.+/.*|autoload)\.php($|/)" - [F]
-
-
- <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,E=no-brotli:1]
- RewriteRule \.js\.gz$ - [T=text/javascript,E=no-gzip:1,E=no-brotli:1]
- <FilesMatch "(\.js\.gz|\.css\.gz)$">
-
- Header set Content-Encoding gzip
-
- Header append Vary Accept-Encoding
- </FilesMatch>
- </IfModule>
- </IfModule>
- <IfModule mod_headers.c>
-
- Header always set X-Content-Type-Options nosniff
-
- RequestHeader unset Proxy
- </IfModule>
|