July 27, 2004

SEO with phpbb message boards

I removed session IDs for Google and Slurp so that they can index every thread on the forum.

Go to includes/sessions.php and find


global $SID;

if ( !empty($SID) && !eregi('sid=', $url) )

Replace with

global $SID, $HTTP_SERVER_VARS;

if ( !empty($SID) && !eregi('sid=', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))

So it should look like this:


function append_sid($url, $non_html_amp = false)
{
global $SID, $HTTP_SERVER_VARS;

if ( !empty($SID) && !eregi('sid=', $url) && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'Googlebot') && !strstr($HTTP_SERVER_VARS['HTTP_USER_AGENT'] ,'slurp@inktomi.com;'))
{
$url .= ( ( strpos($url, '?') != false ) ? ( ( $non_html_amp ) ? '&' : '&' ) : '?' ) . $SID;
}

return $url;

I'm testing all my changes by comparing the modified www.learn-english-grammar.com to the unmodified www.learn-english-vocabulary.com. This one works. 53 grammar pages are indexed by Google and only 4 vocabulary pages (the ones with direct links to them from external sites).

Posted by James Trotta at July 27, 2004 2:21 AM
Comments

If your hosting provider supports mod_rewrite, it's even better to install a phpBB hack to make all urls looks like static html page

Posted by: Vocabulary at August 10, 2004 6:42 AM

So you've switched your handle from KL to Vocabulary - it should help. I'm not much of a coder, so I'm taking baby steps here. Also I here that static URLs are no big deal, and Google seems to have no problems following my php URLs.

Posted by: James Trotta at August 15, 2004 9:31 PM
Post a comment









Remember personal info?






Trade links with seo-search-engine-ranking.com

http://www.seo-search-engine-ranking.com/ad_network_222.php