PHP Link Directory - Why are URL's getting crawled as ?PHPSESSID=

Discussion in 'HTML & Website Design' started by amedia, Aug 13, 2008.

  1. #1
    For some reason my urls are showing up in google as: mydomain.com/category/topic/?PHPSESSID=0777b646c596a8f3bfabfaa22

    I want them to show up as just: mydomain.com/category/topic/

    Soemtime when i am on the site when i click on a link its mydomain.com/category/topic/ and other times its mydomain.com/category/topic/?PHPSESSID=0777b646c596a8f3bfabfaa22

    I dont understand why it shows up like that and other times its the short url.
     
    amedia, Aug 13, 2008 IP
  2. annunaki10

    annunaki10 Active Member

    Messages:
    58
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    93
    #2
    I have the same issue with my site and it's because of cookies. When cookies are disabled, the session id is passed around and that's how it keeps track of the session and what that user has done. Google's crawler has cookies turned off so it automatically gets PHPSESSID tacked on. Add some redirect code to .htacess to remove that. I'm still researching the best way to tackle this problem.
     
    annunaki10, Oct 14, 2008 IP