Author Topic: Search engine friendly URL's session id  (Read 5898 times)

0 Members and 1 Guest are viewing this topic.

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Search engine friendly URL's session id
« on: April 07, 2005, 02:11:33 PM »
Some Search engines has trouble getting around a session id.

I've installed the rewrite.engine MOD to make all my URLs with .html extension. But now I still get the session id.

EX:
I have an URL like this:
www.site.com/img1.htm?sessionid=3234235345345345345blahblahblah

How do I force 4images NOT to use session id's? I want to remove it, because search engines can't spider a site using session id.
Greetz: Lasse

Offline martrix

  • Hero Member
  • *****
  • Posts: 755
    • View Profile
    • overlord.cz
MAяTRIX


Offline aldoy

  • Pre-Newbie
  • Posts: 3
    • View Profile
Re: Search engine friendly URL's session id
« Reply #2 on: May 20, 2005, 09:33:47 PM »
Thanx alot man for the useful code ..

but after applying your mods I thought of a faster way for (Now)  :wink:

Comment out these following lines from inlcudes/session.php
around Line No 366

Code: [Select]
/*    if ($this->mode == "get" && !preg_match("/".SESSION_NAME."=/i", $url)) {
$url .= preg_match("/\?/", $url) ? "$amp" : "?";
$url .= SESSION_NAME."=".$this->session_id;
    }*/

bye

Offline Chris

  • 4images Moderator
  • 4images Guru
  • *****
  • Posts: 4.487
  • Did u ever stop to think and then forget to start?
    • View Profile
Re: Search engine friendly URL's session id
« Reply #3 on: May 21, 2005, 01:13:50 AM »
That's a brute force method meaning you will remove the benefits of sessions for real people.  Good luck.

Offline marod0er

  • Full Member
  • ***
  • Posts: 199
    • View Profile
Greetz: Lasse