PSD-Tutorials.de
Forum für Design, Fotografie & Bildbearbeitung
Tutkit
Agentur
Hilfe
Kontakt
Start
Forum
Aktuelles
Besonderer Inhalt
Foren durchsuchen
Tutorials
News
Anmelden
Kostenlos registrieren
Aktuelles
Suche
Suche
Nur Titel durchsuchen
Von:
Menü
Anmelden
Kostenlos registrieren
App installieren
Installieren
JavaScript ist deaktiviert. Für eine bessere Darstellung aktiviere bitte JavaScript in deinem Browser, bevor du fortfährst.
Du verwendest einen veralteten Browser. Es ist möglich, dass diese oder andere Websites nicht korrekt angezeigt werden.
Du solltest ein Upgrade durchführen oder einen
alternativen Browser
verwenden.
Antworten auf deine Fragen:
Neues Thema erstellen
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Wordpress/Strato - Enable gzip compression ?
Beitrag
<blockquote data-quote="Sambino" data-source="post: 1935992" data-attributes="member: 419544"><p>Hallo zusammen,</p><p>ich habe eine Wordpress-Installation bei strato gehostet und benutze unter anderem das Plugin WP-Super-Cache.</p><p>Eine Prüfung mit GTmetrix zeit mir den Hinweis "Enable Gzip Compression" an. </p><p>Ich habe gelesen, dass man dies mittels der .htacces machen kann. Aber wie?</p><p> </p><p>Vielleicht kann mir jemand helfen, der sich damit auskennt?</p><p>Was muss ich an folgender .htaccess ändern, damit Gzip bei strato aktiviert wird:</p><p> </p><p>[CODE]# WordPress SEO - XML Sitemap Rewrite Fix</p><p><IfModule mod_rewrite.c></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>RewriteRule ^sitemap_index\.xml$ /index.php?sitemap=1 [L]</p><p>RewriteRule ^([^/]+?)-sitemap([0-9]+)?\.xml$ /index.php?sitemap=$1&sitemap_n=$2 [L]</p><p></IfModule></p><p># END WordPress SEO - XML Sitemap Rewrite Fix</p><p></p><p># BEGIN WordPress</p><p><IfModule mod_rewrite.c></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>RewriteRule ^index\.php$ - [L]</p><p>RewriteCond %{REQUEST_FILENAME} !-f</p><p>RewriteCond %{REQUEST_FILENAME} !-d</p><p>RewriteRule . /index.php [L]</p><p></IfModule></p><p># END WordPress</p><p># BEGIN -DRWEB.DE- Schuetzen Sie Ihr WordPress-xxxxxx vor Script Injection</p><p>Options +FollowSymLinks</p><p>RewriteEngine On</p><p>RewriteCond %{QUERY_STRING} (\<|%3C).*script.*(\>|%3E) [NC,OR]</p><p>RewriteCond %{QUERY_STRING} GLOBALS(=|\[|\%[0-9A-Z]{0,2}) [OR]</p><p>RewriteCond %{QUERY_STRING} _REQUEST(=|\[|\%[0-9A-Z]{0,2})</p><p>RewriteRule ^(.*)$ index.php [F,L]</p><p># END -DRWEB.DE- Schuetzen Sie Ihr WordPress-xxxxxx vor Script Injection</p><p> </p><p></p><p># BEGIN -DRWEB.DE- Legen Sie Content-Klauern das Handwerk</p><p>RewriteEngine On</p><p>#Replace ?mysite\.com/ with your xxxxxx url</p><p>RewriteCond %{HTTP_REFERER} !^http://(.+\.)?XXXXXXXXX\.com/ [NC]</p><p>RewriteCond %{HTTP_REFERER} !^$</p><p>#Replace /images/nohotlink.jpg with your "don't hotlink" image url</p><p>RewriteRule .*\.(jpe?g|gif|bmp|png)$ /images/nohotlink.jpg [L]</p><p># END -DRWEB.DE- Legen Sie Content-Klauern das Handwerk</p><p></p><p><files wp-config.php></p><p>Order deny,allow</p><p>deny from all</p><p></files></p><p></p><p># BEGIN WPSuperCache</p><p><IfModule mod_rewrite.c></p><p>RewriteEngine On</p><p>RewriteBase /</p><p>#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible</p><p>RewriteCond %{REQUEST_URI} !^.*[^/]$</p><p>RewriteCond %{REQUEST_URI} !^.*//.*$</p><p>RewriteCond %{REQUEST_METHOD} !POST</p><p>RewriteCond %{QUERY_STRING} !.*=.*</p><p>RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$</p><p>RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Accept-Encoding} gzip</p><p>RewriteCond %{HTTPS} on</p><p>RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz -f</p><p>RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html.gz" [L]</p><p></p><p>RewriteCond %{REQUEST_URI} !^.*[^/]$</p><p>RewriteCond %{REQUEST_URI} !^.*//.*$</p><p>RewriteCond %{REQUEST_METHOD} !POST</p><p>RewriteCond %{QUERY_STRING} !.*=.*</p><p>RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$</p><p>RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Accept-Encoding} gzip</p><p>RewriteCond %{HTTPS} !on</p><p>RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz -f</p><p>RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html.gz" [L]</p><p></p><p>RewriteCond %{REQUEST_URI} !^.*[^/]$</p><p>RewriteCond %{REQUEST_URI} !^.*//.*$</p><p>RewriteCond %{REQUEST_METHOD} !POST</p><p>RewriteCond %{QUERY_STRING} !.*=.*</p><p>RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$</p><p>RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTPS} on</p><p>RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html -f</p><p>RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index-https.html" [L]</p><p></p><p>RewriteCond %{REQUEST_URI} !^.*[^/]$</p><p>RewriteCond %{REQUEST_URI} !^.*//.*$</p><p>RewriteCond %{REQUEST_METHOD} !POST</p><p>RewriteCond %{QUERY_STRING} !.*=.*</p><p>RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$</p><p>RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]</p><p>RewriteCond %{HTTPS} !on</p><p>RewriteCond %{DOCUMENT_ROOT}/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html -f</p><p>RewriteRule ^(.*) "/xxxxxx/xxx/xxx/XXXXXXXXX/xxxxxx/XXXXXXXXX.com/xxxxxx/wp-content/cache/supercache/%{HTTP_HOST}/$1/index.html" [L]</p><p></p><p></IfModule></p><p></p><p># END WPSuperCache[/CODE]</p></blockquote><p></p>
[QUOTE="Sambino, post: 1935992, member: 419544"] 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: [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[/CODE] [/QUOTE]
Bilder bitte
hier hochladen
und danach über das Bild-Icon (Direktlink vorher kopieren) platzieren.
Zitate einfügen…
Authentifizierung
Wenn ▲ = 5, ▼ = 2 und ■ = 7, was ist ▲ × ▼ + ■?
Antworten
Start
Forum
Sonstiges
Webdesign, Webentwicklung & Programmierung
Webdesign: HTML/CSS, Responsive Design, Sass...
Wordpress/Strato - Enable gzip compression ?
Oben