Removing Old Session ID Links from Google Index

Discussion in 'Google' started by jewelryzen, Jun 8, 2009.

  1. #1
    I've removed session ID's from my URLs and applied URL rewrites, but now Google is telling me I have a large number of duplicate title and meta tags because it is still reading the old session ID url.

    As an example it shows pages in the webmaster tools each with each page as having:

    1) the old URL w/ a session ID
    2) another version of the URL w/ another session ID
    3) the new updated URL rewrite w/ o a session ID (the one and only i want to index)

    As a result, I am having trouble getting all my site's pages indexed.

    My questions:

    - how do I remove the first two versions where these URL's are using the session ID's?
    - will these automatically unindex these pages after a long enough period of time?
    - is this a posisble duplicate content issue?
    - how long will this take?

    They are no longer linked anywhere in my site and not in my sitemap.xml file.

    Any advice is appreciated.
     
    jewelryzen, Jun 8, 2009 IP
  2. SearchBliss

    SearchBliss Well-Known Member

    Messages:
    1,899
    Likes Received:
    70
    Best Answers:
    2
    Trophy Points:
    195
    Digital Goods:
    1
  3. OnInternetBusinessGuide

    OnInternetBusinessGuide Well-Known Member

    Messages:
    330
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    108
    #3
    I had the same problem a few weeks ago. Insert the follow code on each of page. You can insert it in your template like I did. Everytime Google will return to your page with php session id, the page tells Google that there is no page. This remove the duplicates pages.

    <?php
    	if ( strpos( $_SERVER["REQUEST_URI"], '?PHPSESSID=' ) != false )
    	{
    		header("HTTP/1.0 404 Not Found");
    		exit;
    	}
    ?>
    PHP: