4images Forum & Community

4images Modifications / Modifikationen => Mods & Plugins (Requests & Discussions) => Topic started by: marod0er on April 07, 2005, 02:11:33 PM

Title: Search engine friendly URL's session id
Post by: marod0er 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.
Title: Re: Search engine friendly URL's session id
Post by: martrix on April 07, 2005, 04:30:00 PM
what about this:

http://www.4homepages.de/forum/index.php?topic=6951.msg30709#msg30709

or that:

http://www.4homepages.de/forum/index.php?topic=6998.0

?
Title: Re: Search engine friendly URL's session id
Post by: aldoy 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
Title: Re: Search engine friendly URL's session id
Post by: Chris 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.
Title: Re: Search engine friendly URL's session id
Post by: marod0er on June 01, 2005, 01:11:44 AM
what about this:

http://www.4homepages.de/forum/index.php?topic=6951.msg30709#msg30709

or that:

http://www.4homepages.de/forum/index.php?topic=6998.0

?

thanks man, just what i needed ;)