Seite 1 von 1

Redirect 301 falsch?

Verfasst: 12.07.2006, 17:57
von bgx
Hi!

Verstehe folgende Umleitung in meinem Log nicht?

Code: Alles auswählen

66.249.72.137 - - [11/Jul/2006:06:00:22 +0200] "GET /topic,1750,-noootfaaal.html HTTP/1.1" 301 31578 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:24 +0200] "GET /sh/ HTTP/1.1" 301 324 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:27 +0200] "GET /topic,542,-verhalten-undquot%3Bkastration-und-angstundquot%3B.html HTTP/1.1" 301 34671 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:30 +0200] "GET /topic,909,-hund-undamp%3B-katz.html HTTP/1.1" 301 93556 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:34 +0200] "GET /topic,1203,60,-osterwanderung---karfreitag.html HTTP/1.1" 301 96906 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:39 +0200] "GET /topic,1094,-welche-rassen-sind-in-unserem-forum-vertreten%3F.html HTTP/1.1" 301 102546 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:44 +0200] "GET /topic,1153,-gro%DFer-schweizer-sennenhund.html HTTP/1.1" 301 103303 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
66.249.72.137 - - [11/Jul/2006:06:00:48 +0200] "GET /topic,1750,-notfall.html HTTP/1.1" 200 31578 "-" "Mozilla/5.0 (compatible; Googlebot/2.1; +http://www.google.com/bot.html)"
Googlebot bekommt laut Log einen 301, holt sich aber nicht die Umgeleitete Seite? Wie darf man das verstehen? :-?

Verfasst:
von
SEO Consulting bei ABAKUS Internet Marketing
Erfahrung seit 2002
  • persönliche Betreuung
  • individuelle Beratung
  • kompetente Umsetzung

Jetzt anfragen: 0511 / 300325-0.


Verfasst: 12.07.2006, 18:04
von Steffi
Bin mir jetzt nicht sicher, würde aber sagen, Google holt sich die Zielseite dann beim nächsten Crawl. Wie hast du denn den Redirect gelöst? Mich wundert die Größe.... 301 31578

Verfasst: 12.07.2006, 18:14
von bgx
Hi!

Hier erstmal ne volle URL https://www.springenderhund.de/topic,17 ... faaal.html

Im Browser klappt es einwandfrei und beim Header abfragen steht auch alles richtig drin.

Nur in meinem gestrigen Log steht alles voll von den alten Adressen und Google nimmt sich keine neue Seite. Vorher hab ich dann immer direkt die neue Seite hintendran im Log gehabt.

Ist ein phpbb Forum mom ich suche die Codestellen mal raus.

Hier der Code:

Code: Alles auswählen

if ( !$userdata['session_logged_in'] )
{
  if ($vtopic) 
  {
    $keyurl=$page_title;
    $search = array&#40;  'Ö',  'Ä',  'Ü',  'ö',  'ä', 'à', 'é', 'è', 'ü',  'ß', '°', '²', '³', '§', '$', '%', '=', '`', '´', '|', '?', 'µ', '~', ' ', '.', ',', "'", '"', '#','"', '&',  '+','>', '<', '!', '?','&#123;','&#125;','&#91;', '&#93;', '/', '\\', ";", "&#41;", "&#40;", '&#58;', '_', '*', '@', '^',  '&', '---', '--'&#41;; 
    $replace = array&#40;'oe', 'ae', 'ue', 'oe', 'ae', 'a', 'e', 'e', 'ue','ss',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '',  '', '-', '-',  '',  '',  '',  '',      '',   'und','und',    '',     '',  '',  '', '', '', '',  '', '-',   '',  '',  '',  '',  '', '-',  '',  '',  '','und',   '-',  '-'&#41;;

    $keyurl=str_replace&#40;$search, $replace, "$keyurl"&#41;;
    $keyurl = strtolower&#40;$keyurl&#41;;
    $seite = $_SERVER&#91;'REQUEST_URI'&#93;;
    if &#40;strrpos&#40;$seite,'/'&#41; > 0&#41;
      $seite = substr&#40;$seite, strrpos&#40;$seite,'/'&#41;&#41;;
    $start=$HTTP_GET_VARS&#91;'start'&#93;;
    $tid=$HTTP_GET_VARS&#91;'t'&#93;;
    $tidp=$HTTP_GET_VARS&#91;'p'&#93;;
    if &#40;$seite !="/topic,$tid,-$keyurl.html" and $seite != "/topic,$tid,$start,-$keyurl.html" and $seite !="/viewtopic.php?p=$tidp"&#41; 
    &#123;
      if &#40;$seite !="/ptopic,$tidp.html"&#41;
      &#123;
        header&#40;"HTTP/1.1 301 Moved Permanently"&#41;;
      &#125;
      else
      &#123;
         header&#40; 'HTTP/1.1 404 Not Found' &#41;;
         header&#40; 'Status&#58; 404 Not Found' &#41;;
         header&#40; 'Connection&#58; close' &#41;;
               message_die&#40;GENERAL_MESSAGE, 'Topic_post_not_exist'&#41;;
      &#125;
      if &#40;intval&#40;$start&#41; > 0&#41;
        header&#40;"Location&#58; topic,$tid,$start,-$keyurl.html"&#41;;
      else
        header&#40;"Location&#58; topic,$tid,-$keyurl.html"&#41;;
      header&#40; 'Connection&#58; close' &#41;;
    &#125;
&#125;

Verfasst: 12.07.2006, 18:43
von Steffi
Also eigentlich sollte es funktionieren...

Verfasst: 12.07.2006, 18:48
von bgx
Sehe ich auch so, nur warum nimmt der G-Bot sich auf einmal nur die falschen Seiten und belässt es dabei, obwohl er den 301er ja offensichtlich bekommt?

Außerdem hat er die alten URL's schon seit ca. 1 1/2 Monaten nicht mehr besucht?

Verstehe ich nicht. :cry:

Verfasst: 12.07.2006, 19:17
von Steffi
Außerdem hat er die alten URL's schon seit ca. 1 1/2 Monaten nicht mehr besucht?
Kommt vor, weil die nicht mehr verlinkt sind wahrscheinlich.