Hallo Community, ich habe folgende .htaccess: bekomme aber von sämtlichen webspeed-prüf-check-tool-seiten .) immer die rückmeldung das webseiten cachen zwischen 80-90% meine seiten besser komprimieren könnte und das ich dies aktivieren sollte… ich hab jetzt alles mögliche ( s.u.) probiert aber ohne erfolg. könnte evtl. mal jemand drüberschauen der sich damit auskennt? mein Hoster sagt : […]mod_deflate ist bereits aktiv und kann wenn in der .htaccess gesetzt, statische Inhalte komprimieren. Für eine Ausgabekomprimierung von PHP-Skripten müssen Sie dies in PHP selbst aktivieren.[/…] Hetzner Online AG [code]
RewriteEngine on
#RewriteBase /shopware/
RewriteRule shopware.dll shopware.php
RewriteRule files/documents/.* engine [NC,L]
RewriteRule application.yaml engine [NC,L]
RewriteRule images/ayww/(.*) images/banner/1
RewriteRule sitemap.xml(.*) shopware.php?controller=SitemapXml
RewriteRule templates/.*(css|js) engine/backend/php/sCacheTemplate.php?file=0 [NC,L]
RewriteRule engine/core/php/sAjaxSearch.php engine/backend/php/sAjaxSearch.php [NC,L]
RewriteRule engine/core/php/campaigns.php$ engine/backend/php/campaigns.php [NC,L]
RewriteCond %{REQUEST_URI} !(engine/|images/|files/|templates/|.js$|.css$|.jpg$|.png$)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ shopware.php [PT,L,QSA]
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE image/svg+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/atom_xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript
AddOutputFilterByType DEFLATE application/x-httpd-php
AddOutputFilterByType DEFLATE application/x-httpd-fastphp
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4\.0[678] no-gzip
BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
Header append Vary User-Agent env=!dont-vary
ExpiresActive On ExpiresDefault "access plus 4 weeks" ExpiresByType image/png "access plus 3 months" ExpiresByType text/css "access plus 7 days" DirectoryIndex index.php DirectoryIndex shopware.php
Deny from all
Options -Indexes # Options -MultiViews # php\_value memory\_limit 128M # php\_value max\_execution\_time 18000 # php\_flag magic\_quotes\_gpc off # php\_flag session.auto\_start off # php\_flag suhosin.session.cryptua off # php\_flag zend.ze1\_compatibility\_mode Off php\_flag SecFilterEngine Off # AddType x-mapp-php5 .php # AddHandler x-mapp-php5 .php # compress text, html, javascript, css, xml: # AddOutputFilterByType DEFLATE text/plain # AddOutputFilterByType DEFLATE text/html # AddOutputFilterByType DEFLATE text/xml # AddOutputFilterByType DEFLATE text/css # AddOutputFilterByType DEFLATE application/xml # AddOutputFilterByType DEFLATE application/xhtml+xml # AddOutputFilterByType DEFLATE application/rss+xml # AddOutputFilterByType DEFLATE application/javascript # AddOutputFilterByType DEFLATE application/x-javascript # Or, compress certain file types by extension:
SetOutputFilter DEFLATE
[/code]