Google indexed forum wrong :(

Discussion in 'Forum Management' started by seopup, May 22, 2006.

  1. #1
    Hi ,

    Recently I have added a forum (PHPBB2) to one of my websites and it indexed it wrong , two listings for same page but different session id .

    Does anybody know how to correct this ?
     
    seopup, May 22, 2006 IP
  2. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Make sure the forum doesn't use session id's in the urls. Especially for bots.
     
    mad4, May 22, 2006 IP
  3. seopup

    seopup Peon

    Messages:
    274
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Yes, I understand that , but how ?
     
    seopup, May 22, 2006 IP
  4. mdvaldosta

    mdvaldosta Peon

    Messages:
    4,079
    Likes Received:
    362
    Best Answers:
    0
    Trophy Points:
    0
    #4
    # 
    #-----[ OPEN ]------------------------------------------ 
    #  
    
    includes/sessions.php 
    
    # 
    #-----[ FIND ]------------------------------------------ 
    # 
    
    $SID = 'sid=' . $session_id; 
    
    # 
    #-----[ REPLACE WITH ]------------------------------------------ 
    # 
    
    if ( $userdata['session_user_id'] != ANONYMOUS ){ 
       $SID = 'sid=' . $session_id; 
    } else { 
       $SID = ''; 
    }
    Code (markup):
     
    mdvaldosta, May 22, 2006 IP
  5. mad4

    mad4 Peon

    Messages:
    6,986
    Likes Received:
    493
    Best Answers:
    0
    Trophy Points:
    0