Welcome to WebmasterWorld Guest from 54.205.75.60

Forum Moderators: rogerd

Message Too Old, No Replies

phpBB SEO

Which hack is best?

   
12:10 am on Oct 29, 2004 (gmt 0)

10+ Year Member



In an effort to give my little used phpBB a little boost in the search engines, I've looked at a few of the SEO hacks out there. I think any of them would be somewhat helpful, but was wondering if anyone had a favorite?
8:05 am on Nov 2, 2004 (gmt 0)

10+ Year Member



After reading several posts about session ID's recommending this, I opened sessions.php and replaced the following code:

global $SID;

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

with this:

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;'))

Now Googlebot quite happily spiders my fora and results appear in the SERPS.

6:47 pm on Nov 2, 2004 (gmt 0)

10+ Year Member



I use the same and it works.
1:39 am on Nov 3, 2004 (gmt 0)

10+ Year Member



Thanks!

I ended up using a combination of two different hacks and, surprisingly, it seems to work well. One makes a static url from the title of the thread and the other is some little seo tweaks, including ditching the sid for guests. Time will tell, but my logs show Google has started on it.

5:59 am on Nov 3, 2004 (gmt 0)

10+ Year Member



Can you post the static link generator, that sounds pretty good to me.
6:24 pm on Nov 3, 2004 (gmt 0)

10+ Year Member



If you google "phpBB google keyword URLs" it is the first result.
7:00 am on Nov 4, 2004 (gmt 0)

10+ Year Member



Thanks for that, had a go but it didnt work. It changed to a friendly URL then just popped up the 404 file not found error. So I had to undo the mod, shame though it looked good.
3:55 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



Hmmm...worked from the start here. Wonder what the problem is?
4:46 pm on Nov 4, 2004 (gmt 0)

10+ Year Member



At times like this I really wish urls could be posted here because there is one particular thread on phpbb.com (from the many that address SEO) where the mods are all on the first page of the long thread and work very well. They address the usual dynamic site problems of session id killing (the most important) to url flattening with mod_rewrite as well as url rewriting (to new mod_rewrite format).
That is really just the start though. I've got my own phpbb forum to index +75,000 pages and they also rank well. The key is to know which other mods to add which were not originally for SEO purposes but effect the deep crawling and ranking. Such as the fetch all mod and sitemap mods for example.

If you wish you can PM me and I'll send you some SE friendly pre modded files as well as details on other mods which should be added.

Alan

5:25 pm on Nov 4, 2004 (gmt 0)

WebmasterWorld Senior Member trillianjedi is a WebmasterWorld Top Contributor of All Time 10+ Year Member



You can also make some useful edits in the bbcode.php file, which contains most of the parsing functions.

I made some changes to the Make_Clickable function in bbcode so that any dropped URL's go via a redirect script (which also incorporates a domain ban list), and email addresses get disguised rather than set to a "MailTo:".

If you're making it easier for bots to navigate, you need to start thinking about the kinds of bots that will be in there but that you don't really want to be able to "see" much.....

TJ