problem with session

Discussions about the phpBB2 Forum. How to get the best from this powerful script.

Moderator: Moderators

problem with session

Postby mhmdkhamis » Sun Jan 21, 2007 8:41 am

now i installed cyber alien mod for session from 10 days ago

but when i checked my links see google take it with session :(

http://www.paramegsoft.com/forum/index.php?mode=spiders

google take here my old links but i am using simple mod rewrite



second problem google not take any new liks to my forum

&i have sitemaps and google bot hits my site alot

does i have any problem?

i need yours idea
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Advertisement

Postby mhmdkhamis » Sun Jan 21, 2007 11:20 am

Code: Select all
function append_sid($url, $non_html_amp = false)
{
   global $SID;

   if ( !empty($SID) && !preg_match('#sid=#', $url) )
   {
     $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
   }

   return $url;
}


replace with

Code: Select all
function append_sid($url, $non_html_amp = false)
{
   global $SID;

   if ( !empty($SID) && !preg_match('#sid=#', $url) && !strstr($_SERVER['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'msnbot') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'Slurp') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'almaden.ibm.com') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'zyborg') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'Jeeves') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'crawler') && !strstr($_SERVER['HTTP_USER_AGENT'] ,'spider') )
   {
     $url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
   }

   return $url;
}


can i use this mod and un install Guest Sessions MOD for cyber aliean

and how i can use this with phpBB-SEO-Simple-mod-Rewrite_V_0.0.2
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt

Postby dcz » Sun Jan 21, 2007 12:16 pm

Cyber aliens method is better ;)

It will take car of all guest thus all bots.


I PM ed you ;)
Useful links :
SEO Forum || SEO Directory || SEO phpBB || Search
____________________

Liens Utiles :
Forum référencement || Annuaire référencement || Référencement phpBB || Recherche
dcz
Admin
Admin
 
Posts: 21219
Joined: Fri Apr 28, 2006 9:03 pm

Postby mhmdkhamis » Sun Jan 21, 2007 12:30 pm

dcz wrote:Cyber aliens method is better ;)

It will take car of all guest thus all bots.


I PM ed you ;)


ok dcz i will try again

thank u man
mhmdkhamis
PR4
PR4
 
Posts: 437
Joined: Sun Nov 26, 2006 11:15 pm
Location: egypt


Return to phpBB2 Forum

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: Google Feedfetcher and 4 guests