|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| 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
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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();
}
?>
Kind Regards, James Kind Regards, James |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |