Version: , by fastforward
Developer Last Online: Nov 2011
Version: 2.2.x
Rating:
Released: 05-24-2001
Last Update: Never
Installs: 35
No support by the author.
For vB 2.0
This little hackette is a quick fix to allow search engine bots to spider your threads.
Although this will allow the bots to index every thread on your site, it will not make the threads 'search engine optimized'. They will see exactly what you see when you visit your site. It simply removes the CGI bits from the URL's which prevents most search engine bots from spidering more than one level deep.
If you want a hack that allows to fully customize how the thread will look to the search engine bot, you should look at Overgrows more complete hack here.
The advantage of this hack over Overgrows is that it does not require htaccess support which can have performance issues. This could also be seen as a disadvantage though as my hack requires that you have mod_rewrite enabled on your Apache Server, whereas Overgrows method should work with just about any web host out there.
Take yer pick
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Originally posted by fastforward
I intend to revisit this very shortly. I've finally started to prepare for upgrading my forums to 2.2.1. It will probably be a couple of weeks though.
Hey fastforward, are you still planning on revisiting this hack?
I have an idea to make this hack more powerful, and require a new addition to this hack, possibly in the code.
I thought of this after I noticed I had many Netscape 4.x users, so I created new style set for them, and placed a link on the main page to "Fix Netscape errors" which simply sets their style id to use the original vB dynamic links.
This makes spiders and most surfers use the new (spider friendly) links, while those who click the "Fix link" can use original vB links in their templates.
The disadvantage, is that some users post links to other thread in spider-friendly format, that other members have trouble accessing if they have Netscape.
What I would like to do, instead, is this:
Detect if the visitor is using a browser agent (IE, Netscape, Mozilla), and if so, set their id to use a default style set (with vB's dynamic links)
If the user agent is other than (Mozilla-compatibele) then use a special style id that contain spider-friendly templates.
It initially sounded easy to me, but then I though that spider robots cannot be cookied, and any style id I assign them in my index.php code, may have to be re-checked in other parts of the code beside index.php? i.e. showthread etc.
Originally posted by tpearl5 Wow.. I didn't know it was a problem. Images didn't work in MSIE without that slash for me.
They worked fine for IE's, but Netscapes 4.7 and earlier had a problem with them.
I even started hacking the sessions and redirecting to different style id's based on user agents! Currently, registered members get the vB dynamic links, and guests get the spider-friendly ones.
I'll keep it that way, but I'll remove the link to Netscape upgrade.
That's always the case with debugging, you look hard for difficult mistakes, and they turn out to be too obvious to catch