ruemenko
Avatar ruemenko
Themenersteller
Beginner (37 Beiträge)

.htaccess diverse Fehler!?

am 19.10.2013, 16:34 Uhr eröffnete ruemenko folgenden Thread
.htaccess    1394 mal gelesen    4 Antwort(en).

Hallo,
habe eben einmal meine htaccess mit lyxx.com (syntax) geprüft.
Ergebnis: Lyxx found 28 problems in the code segment(s) below.

Leider habe ich kaum bis keine Kenntnisse um die Fehler selbst einschätzen zu können. (In Form von Dramatisch!? / Kein Problem!?)
Ich arbeite mit Wordpress und hier mit einem Plugin zum cachen der Webseite. Das Plugin heißt: WP Super Cache und wirft folgenede Fehler aus:

line 11:
RewriteCond %{REQUEST_URI} !^.*[^/]$
line 12: (40)
RewriteCond %{REQUEST_URI} !^.*//.*$
line 13: (20)
RewriteCond %{REQUEST_METHOD} !POST
line 14:
RewriteCond %{QUERY_STRING} !.*=.*
line 15: (20)
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
line 16: (20)
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
line 17: (20)
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
line 18:
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
line 19:
RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
line 20: (20)
RewriteCond %{HTTP:Accept-Encoding} gzip
line 21:
RewriteCond %{HTTPS} on
line 22: (20)
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz -f
line 23:
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html.gz" [L]
line 25:
RewriteCond %{REQUEST_URI} !^.*[^/]$
line 26: (40)
RewriteCond %{REQUEST_URI} !^.*//.*$
line 27: (20)
RewriteCond %{REQUEST_METHOD} !POST
line 28:
RewriteCond %{QUERY_STRING} !.*=.*
line 29: (20)
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
line 30: (20)
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
line 31: (20)
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
line 32:
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
line 33:
RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
line 34: (20)
RewriteCond %{HTTP:Accept-Encoding} gzip
line 35: (20)
RewriteCond %{HTTPS} !on
line 36: (20)
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz -f
line 37:
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html.gz" [L]
line 39:
RewriteCond %{REQUEST_URI} !^.*[^/]$
line 40: (40)
RewriteCond %{REQUEST_URI} !^.*//.*$
line 41: (20)
RewriteCond %{REQUEST_METHOD} !POST
line 42:
RewriteCond %{QUERY_STRING} !.*=.*
line 43: (20)
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
line 44: (20)
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
line 45: (20)
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
line 46:
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
line 48:
RewriteCond %{HTTPS} on
line 49: (20)
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html -f
line 50:
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index-https.html" [L]
line 52:
RewriteCond %{REQUEST_URI} !^.*[^/]$
line 53: (40)
RewriteCond %{REQUEST_URI} !^.*//.*$
line 54: (20)
RewriteCond %{REQUEST_METHOD} !POST
line 55:
RewriteCond %{QUERY_STRING} !.*=.*
line 56: (20)
RewriteCond %{HTTP:Cookie} !^.*(comment_author_|wordpress_logged_in|wp-postpass_).*$
line 57: (20)
RewriteCond %{HTTP:X-Wap-Profile} !^[a-z0-9\"]+ [NC]
line 58: (20)
RewriteCond %{HTTP:Profile} !^[a-z0-9\"]+ [NC]
line 59:
RewriteCond %{HTTP_USER_AGENT} !^.*(2.0\ MMP|240x320|400X240|AvantGo|BlackBerry|Blazer|Cellphone|Danger|DoCoMo|Elaine/3.0|EudoraWeb|Googlebot-Mobile|hiptop|IEMobile|KYOCERA/WX310K|LG/U990|MIDP-2.|MMEF20|MOT-V|NetFront|Newt|Nintendo\ Wii|Nitro|Nokia|Opera\ Mini|Palm|PlayStation\ Portable|portalmmm|Proxinet|ProxiNet|SHARP-TQ-GX10|SHG-i900|Small|SonyEricsson|Symbian\ OS|SymbianOS|TS21i-10|UP.Browser|UP.Link|webOS|Windows\ CE|WinWAP|YahooSeeker/M1A1-R2D2|iPhone|iPod|Android|BlackBerry9530|LG-TU915\ Obigo|LGE\ VX|webOS|Nokia5800).* [NC]
line 60:
RewriteCond %{HTTP_user_agent} !^(w3c\ |w3c-|acs-|alav|alca|amoi|audi|avan|benq|bird|blac|blaz|brew|cell|cldc|cmd-|dang|doco|eric|hipt|htc_|inno|ipaq|ipod|jigs|kddi|keji|leno|lg-c|lg-d|lg-g|lge-|lg/u|maui|maxo|midp|mits|mmef|mobi|mot-|moto|mwbp|nec-|newt|noki|palm|pana|pant|phil|play|port|prox|qwap|sage|sams|sany|sch-|sec-|send|seri|sgh-|shar|sie-|siem|smal|smar|sony|sph-|symb|t-mo|teli|tim-|tosh|tsm-|upg1|upsi|vk-v|voda|wap-|wapa|wapi|wapp|wapr|webc|winw|winw|xda\ |xda-).* [NC]
line 61: (20)
RewriteCond %{HTTPS} !on
line 62: (20)
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html -f
line 63:
RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/index.html" [L]


matthes
Avatar matthes
Foren Moderator
Evil Genius
Content Halbgott (973 Beiträge)
am 19.10.2013, 17:57 Uhr schrieb matthes

Hallo,

um es einleitend kurz zu machen: Na und?

Welche Probleme hat lyxx.com denn festgestellt, dazu steht da nichts. Wenn lyxx.com meint, das seien Probleme, solltest Du auch dort fragen, was denn daran falsch oder problematisch sein soll.
Soweit ich das sehen kann, beherrscht der lyxx.com-Check einfach keine Rewrite-Regeln, d.h. das was dort bemängelt wird, versteht das Script einfach nur nicht.

Ich sehe keinerlei Schwierigkeiten, gibt es denn Probleme mit dieser Datei? Falls nicht, sollte man manchmal einfach darauf verzichten, alles durch irgendwelche Checks, Validatoren oder ähnliche Späße zu jagen.
Wenn in der .htaccess was falsch ist, meldet der Server das sehr zuverlässig.


Make Seitenreport great again!

hansen
Foren Moderator
Content Gott (1886 Beiträge)
am 19.10.2013, 19:24 Uhr schrieb hansen

Spätestens hier sollte man bei Lyxx nachdenklich werden:

If you are still unable to resolve errors in your code and need a quick fix, we offer a US$149.95 pay-per-incident support facility.

Gruß
hansen


Nepal Rundreisen

ruemenko
Avatar ruemenko
Beginner (37 Beiträge)
am 19.10.2013, 20:20 Uhr schrieb ruemenko

@Matthes,
@Hansen,

vielen Dank für eure Antworten! Ja, vielleicht sollte man nicht jedem Tool alles zu trauen! Für einen htaccess Laien ist jedoch schwierig einzuschätzen. Darum nutze ich letztlich so ein Tool.

Rüdiger


hansen
Foren Moderator
Content Gott (1886 Beiträge)
am 20.10.2013, 14:03 Uhr schrieb hansen

Hllo Rüdiger,

ruemenko schrieb:
Für einen htaccess Laien ist jedoch schwierig einzuschätzen. Darum nutze ich letztlich so ein Tool.


trau Dich einfach bei .htaccess, entweder es geht, oder der Server quietscht. Du bekommst nach dem Aufspielen der Datei sofort das Ergebnis zu sehen (Browser aktualisieren nicht vergessen).

Gruß
hansen


Nepal Rundreisen

  • 1


« zurück zu: .htaccess

Das Seitenreport Forum hat aktuell 5273 Themen und 36107 Beiträge.
Insgesamt sind 48345 Mitglieder registriert.