Skip to content

Instantly share code, notes, and snippets.

@kaystrobach
Created June 7, 2019 10:49
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kaystrobach/7eae09e6f5d4f12c75d9c239c4f16e03 to your computer and use it in GitHub Desktop.
Save kaystrobach/7eae09e6f5d4f12c75d9c239c4f16e03 to your computer and use it in GitHub Desktop.
.htaccess für allinkl.com
php_flag log_errors on
php_value error_log "/www/htdocs/w018dcee/logs/phplog-typo3.log"
RewriteEngine On
RewriteRule ^typo3$ - [L]
RewriteRule ^typo3/.*$ - [L]
RewriteRule ^fileadmin$ - [L]
RewriteRule ^fileadmin/.*$ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)$ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
# zend.ze1_compatibility_mode On
# AddType text/html .php
<FilesMatch "\.js\.gzip$">
AddType "text/javascript" .gzip
</FilesMatch>
<FilesMatch "\.css\.gzip$">
AddType "text/css" .gzip
</FilesMatch>
AddEncoding gzip .gzip
################################################################################
# Optimize Caching behaviour
################################################################################
<FilesMatch "\.(xml|txt|html|js|css|png|gif|jpg|jpeg|ico)$">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 month"
</IfModule>
# Header set Cache-Control "max-age=604800, public"
# Header unset ETag
FileETag None
</FilesMatch>
<FilesMatch "\.(js|css|xml|gz)$">
<IfModule mod_headers.c>
Header append Vary Accept-Encoding
</IfModule>
</FilesMatch>
<FilesMatch "\.(merge|min|gz)(\.gz)?\.(js|css)">
<IfModule mod_expires.c>
ExpiresActive on
ExpiresDefault "access plus 1 year"
</IfModule>
<IfModule mod_headers.c>
Header append Cache-Control "public"
</IfModule>
</FilesMatch>
#SetOutputFilter DEFLATE
FileETag None
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment