iEntry 10th Anniversary Forum Rules Search
WebProWorld
Register FAQ Calendar Mark Forums Read
Search Engine Optimization Forum SEO is much easier with help from peers and experts! The WebProWorld SEO forum is for the discussion and exploration of various search engine optimization topics. Any non (engine) specific SEO or SEM topics should go here.

Share Thread: & Tags

Share Thread:

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-16-2004, 05:00 PM
WebProWorld New Member
 
Join Date: Mar 2004
Location: UK
Posts: 4
site-report RepRank 0
Default Regarding session ids

Hi there,

Google does not like session ids or anything in a query string that could be a session id. As you quite rightly point out, forums and ecommerce sites do use session ids and therefore the way to get pages listed is to detect the user agent for a spider (e.g. googlebot) and not turn sessions on when they visit.

In PHP, this code may look something like:

Code:
<?php
if ( (strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot')) ||
||(strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;')))
{
// a spider, therefore don't start sessions
}
else
{
// start the session
session_start();
}
?>
This is a legitimate technique used by many forums and search engine friendly ecommerce solutions.

Kind Regards,
James
Kind Regards,
James
Reply With Quote
  #2 (permalink)  
Old 03-16-2004, 05:27 PM
Christian_SEO's Avatar
WebProWorld Member
 
Join Date: Jun 2003
Location: Minneapolis MN USA
Posts: 63
Christian_SEO RepRank 0
Default

Great tip! Thank you!!!
Reply With Quote
  #3 (permalink)  
Old 03-16-2004, 05:31 PM
WebProWorld New Member
 
Join Date: Mar 2004
Location: UK
Posts: 4
site-report RepRank 0
Default Oops

Posted new topic rather than Post Reply though! Should have been in 'Can Bots Find PHP' thread.
Reply With Quote
Reply

  WebProWorld > Search Engines > Search Engine Optimization Forum

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 09:49 AM.



Search Engine Optimization by vBSEO 3.3.0