Vize-Imperator
Hallo zusammen,
ich habe eine Wordpress-Installation bei strato gehostet und benutze unter anderem das Plugin WP-Super-Cache.
Eine Prüfung mit GTmetrix zeit mir den Hinweis "Enable Gzip Compression" an.
Ich habe gelesen, dass man dies mittels der .htacces machen kann. Aber wie?
Vielleicht kann mir jemand helfen, der sich damit auskennt?
Was muss ich an folgender .htaccess ändern, damit Gzip bei strato aktiviert wird:
ich habe eine Wordpress-Installation bei strato gehostet und benutze unter anderem das Plugin WP-Super-Cache.
Eine Prüfung mit GTmetrix zeit mir den Hinweis "Enable Gzip Compression" an.
Ich habe gelesen, dass man dies mittels der .htacces machen kann. Aber wie?
Vielleicht kann mir jemand helfen, der sich damit auskennt?
Was muss ich an folgender .htaccess ändern, damit Gzip bei strato aktiviert wird:
Code:
# WordPress SEO - XML Sitemap Rewrite Fix
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]
RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]
</IfModule>
# END WordPress SEO - XML Sitemap Rewrite Fix
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
# BEGIN -DRWEB.DE- Schuetzen Sie Ihr WordPress-xxxxxx vor Script Injection
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]
RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]
RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})
RewriteRule ^(.*)$ index.php [F,L]
# END -DRWEB.DE- Schuetzen Sie Ihr WordPress-xxxxxx vor Script Injection
# BEGIN -DRWEB.DE- Legen Sie Content-Klauern das Handwerk
RewriteEngine On
#Replace ?mysite\.com/ with your xxxxxx url
RewriteCond %{HTTP_REFERER} !^http://(.+\.)?XXXXXXXXX\.com/ [NC]
RewriteCond %{HTTP_REFERER} !^$
#Replace /images/nohotlink.jpg with your "don't hotlink" image url
RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]
# END -DRWEB.DE- Legen Sie Content-Klauern das Handwerk
<files wp-config.php>
Order deny,allow
deny from all
</files>
# BEGIN WPSuperCache
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} on
RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f
RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Accept-Encoding} gzip
RewriteCond %{HTTPS} !on
RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f
RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTPS} on
RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html -f
RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html" [L]
RewriteCond %{REQUEST_URI} !^.*[^/]$
RewriteCond %{REQUEST_URI} !^.*//.*$
RewriteCond %{REQUEST_METHOD} !POST
RewriteCond %{QUERY_STRING} !.*=.*
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
RewriteCond %{HTTPS} !on
RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f
RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]
</IfModule>
# END WPSuperCache