Php Link Directory, unstabel urls

Discussion in 'Directories' started by princet, Sep 24, 2007.

  1. #1
    Hi, I'm running phpld v2.1.2 on a hobby project, but I have encountered problems with the search-engine-friendly urls.
    Most of the time they are working great, but quite often the script puts session id's behind the urls, and this causes google to index both sets of urls.

    I believe I use the correct .htaccess, and I can't figure out why the directory most of the time have correct urls, but some time doesn't

    Any of you got a clue?
    this is an example of what sometimes appears behind my urls
    ?PHPSESSID=074031730764af96bc256a1462ebb00a
     
    princet, Sep 24, 2007 IP
  2. an0n

    an0n Prominent Member

    Messages:
    5,688
    Likes Received:
    915
    Best Answers:
    0
    Trophy Points:
    360
    #2
    try adding these two lines to your .htaccess file

    php_value register_globals 0
    php_value session.auto_start 0
     
    an0n, Sep 24, 2007 IP
  3. danamaxim

    danamaxim Peon

    Messages:
    335
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Sorry, but i can't help you!
     
    danamaxim, Sep 24, 2007 IP
  4. SilkySmooth

    SilkySmooth Well-Known Member

    Messages:
    1,583
    Likes Received:
    269
    Best Answers:
    0
    Trophy Points:
    180
    #4
    It is most likely your PHP configuration rather than phpLD.

    Try adding the following to the top of your .htaccess file to switch off transparent SID support:

    
    php_value session.use_trans_sid "0"
    
    Code (markup):
     
    SilkySmooth, Sep 24, 2007 IP
    vishwaa and Richie_Ni like this.
  5. Freewebspace

    Freewebspace Notable Member

    Messages:
    6,213
    Likes Received:
    370
    Best Answers:
    0
    Trophy Points:
    275
    #5
    that is PHPSESSION Id's

    I think you need to turn of PHPSession

    you can search in www.phplinkdirectory.com/forums to know more about it
     
    Freewebspace, Sep 24, 2007 IP
  6. jminscoe

    jminscoe Peon

    Messages:
    1,223
    Likes Received:
    119
    Best Answers:
    0
    Trophy Points:
    0
    #6
    an0n posted what you should do as he knows the script inside out
     
    jminscoe, Sep 24, 2007 IP
  7. amitpatel_3001

    amitpatel_3001 Results Follow Patience

    Messages:
    14,074
    Likes Received:
    1,178
    Best Answers:
    0
    Trophy Points:
    430
    #7
    An0n did post in the very second post and still people are posting the same codes again ;)
     
    amitpatel_3001, Sep 24, 2007 IP
  8. princet

    princet Peon

    Messages:
    455
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #8
    I'm trying An0ns solution now, don't know if it works or not.
    The session ID's show at random times.

    Anyway, thanks for the help.
     
    princet, Sep 24, 2007 IP
  9. malcolm1

    malcolm1 Prominent Member

    Messages:
    7,148
    Likes Received:
    758
    Best Answers:
    0
    Trophy Points:
    310
    #9
    If for some chance an0ns doesnt work then try silkys as hes very good at problem solving also. I wish i could help but im not a techy :eek:

    thx
    malcolm
     
    malcolm1, Sep 24, 2007 IP