Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Details »»

Version: , by fastforward fastforward is offline
Developer Last Online: Nov 2011 Show Printable Version Email this Page

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.

Comments
  #152  
Old 03-03-2002, 09:48 AM
etom etom is offline
 
Join Date: Mar 2002
Posts: 9
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

slinky: what is Your definition of 'here'
Reply With Quote
  #153  
Old 03-03-2002, 10:47 AM
slinky slinky is offline
 
Join Date: Dec 2001
Posts: 202
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm not sure if something here is upsetting you. If you want help with problems that you are having, you need to clearly explain what your problems are. It will probably be more helpful in troubleshooting to provide an explanation rather than just a reference to your site.
Reply With Quote
  #154  
Old 03-16-2002, 12:55 PM
Admin's Avatar
Admin Admin is offline
Coder
 
Join Date: Oct 2023
Location: Server
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Just installed this here, seems to be working great.
Reply With Quote
  #155  
Old 03-16-2002, 01:57 PM
fastforward fastforward is offline
 
Join Date: Oct 2001
Location: NC, USA
Posts: 399
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally posted by FireFly
Just installed this here, seems to be working great.
Not quite... The 'who installed this hack' link isn't working. You'll need to either but bburl or a slash in front of the url. I'm guessing that's probably inside the javascript. The 'base href' in the header doesn't seem to fix everything.

EDIT:
Forget it... Either you just fixed it or there be gremlins on this here site
Reply With Quote
  #156  
Old 03-17-2002, 08:01 PM
AWS's Avatar
AWS AWS is offline
 
Join Date: Nov 2001
Location: Joliet, IL
Posts: 235
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I installed this and get 400 bad request errors. If I use the rewrite rule from the zip I get 500 error and in error log it says it can't parse regex. I used the modified rules and then I get 400 error. Anyone know what the problem might be?
Reply With Quote
  #157  
Old 03-22-2002, 12:41 PM
leebo's Avatar
leebo leebo is offline
 
Join Date: Nov 2001
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Any chance of getting it converted to the autohack ( vbhacker )

Thanks
Reply With Quote
  #158  
Old 05-03-2002, 11:48 PM
Thomas P's Avatar
Thomas P Thomas P is offline
 
Join Date: Oct 2001
Location: Munich, DE
Posts: 365
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi there,

I'm trying this the 'n'th time now, meanwhile I switched hosters 3
times and all of them support mod_rewrite.
Nothing ever worked for me, am I that lame? I think so...

I use
Code:
RewriteEngine on
RewriteRule ^f([0-9]+)/?$ forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^t([0-9]+)\.html$ showthread.php?threadid=$1 [L]
RewriteRule ^t([0-9]+)-([0-9]+)\.html$ showthread.php?threadid=$1&perpage=15&pagenumber=$2 [L]
RewriteRule ^f([0-9]+)-([0-9]+)/$ forumdisplay.php?forumid=$1&daysprune=1000&sortorder=&sortfield=lastpost&perpage=40&pagenumber=$2 [L]
RewriteRule ^[ft]([0-9]+)/s([^/]*)/(.+)$ /$3 [L]
in an .htaccess-file in my forum-directory where all
the vB-files reside.

After placing the htaccess-file i should be able to browse my board by typing in
something like http://mcseboard.de/f3 which should get me
http://www.mcseboard.de/forumdisplay.php?&forumid=3 - it doesn't


What's wrong here?
Thanks for any hint,
-Tom

P.S.: My URL isn't domain.com/forum but straight domain.com
That's the only difference I can see to a standard vB installation.
Reply With Quote
  #159  
Old 05-31-2002, 03:00 AM
mano1.com mano1.com is offline
 
Join Date: May 2002
Posts: 54
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

what is the latest version of this hack? There are so many posts I am not sure if I'd be up to date downloading the original file posted.

Thanks for letting me know

Reply With Quote
  #160  
Old 06-17-2002, 05:25 PM
Kyle_TX Kyle_TX is offline
 
Join Date: Nov 2001
Posts: 13
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I want to install this, however I have a quick question.

Is this going to affect my current search engine listings?
Reply With Quote
  #161  
Old 06-20-2002, 08:28 PM
The Piper's Avatar
The Piper The Piper is offline
 
Join Date: Apr 2002
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I compiled all the information regarding spider friendly URLs using .htaccess into one file, since a lot of people (including myself) were feeling a bit lost.

Please notice I do NOT claim any authorship on anything here. I merely copied a lot of information from a lot of threads into one file.

There may be errors, so I don't guarantee anything. You are using this on your own risk. It's working at my site, so I hope it works for you. One last thing, since I didn't create any of this, I won't be supporting anything, because I'm a newbie and I don't have much time. Just thought I'd contribute with my 2 cents.

Many thanks to all the people who helped me make this work on my site.

Shine on!
Paulo
Reply With Quote
  #162  
Old 06-21-2002, 04:37 PM
jon2x jon2x is offline
 
Join Date: Jun 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<waffle>
just a thought....
by replacing:
Code:
<a href="showthread.php?s=$session[sessionhash]&threadid=$thread[threadid]">
with
Code:
<a href="$bburl/t$thread[threadid].html">
i believe you're preventing the sessionhash from being moved direct between pages?... does this affect users who aren't using cookies to track their sessionhash?

if two users with the same browser behind the same proxy and without cookies enabled try to access the site they might get strange things happening like posts being marked as read that they haven't seen etc....

if this is the case i don't think there's a way around it because passing the sessionhash in the path_info might cause spiders from different ips to register multiple copies of the same page...

sorry if i'm missing the point of sessionhash or the way this hack works aranoid:
</waffle>
Reply With Quote
  #163  
Old 06-21-2002, 05:01 PM
The Piper's Avatar
The Piper The Piper is offline
 
Join Date: Apr 2002
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

By reading your post I got kinda worried about this as well. But I just checked the "Who's Online" page on my site, and all of the pages are something like:

Code:
http://www.pinkfloydfan.net/t145.html?s=SESSIONHASH
So, apparently, the sessionhash is being passed through the new search-engine friendly page.

BTW, I just tried to update my online.php file with the instructions I found earlier (and posted on the compilation file before), but it didn't work. I was supposed to find this:
Code:
$loc=preg_replace("/?s=[a-z0-9]{32}(&)?/","?",$loc);
But only found this, on 2.2.6:
Code:
$loc=preg_replace("/\?s=[a-z0-9]{32}(&)?/","?",$loc);
I've tried adding
Code:
$loc=preg_replace("/(f)([0-9]+)(/)/","forumdisplay.php?forumid=\2",$loc);
$loc=preg_replace("/(t)([0-9]+)(.html)/","showthread.php?threadid=\2",$loc);
$loc=preg_replace("/&s=[a-z0-9]+/","",$loc);
but then I got lots of errors. No idea of what is going on....
Reply With Quote
  #164  
Old 06-21-2002, 05:13 PM
jon2x jon2x is offline
 
Join Date: Jun 2002
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

when i go to your site (http://www.pinkfloydfan.net/) none of the links on the frontpage are actually in the "spider friendly" format... how are the searchengine spiders working?
Reply With Quote
  #165  
Old 06-21-2002, 05:34 PM
The Piper's Avatar
The Piper The Piper is offline
 
Join Date: Apr 2002
Location: Brazil
Posts: 63
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, some of them are in spider-friendly version. Some of them are not, YET, because of a few things: First, I want some of the forums to be shown ordered by Thread in ascendant order, so that can't be accomplished yet with spider-friendly URLS. Second, a few of the regular links (such as those "Comments" on every news) don't need to be SE optimized, because I have the link to the news forum in a SE friendly format, on the left menu.
Reply With Quote
  #166  
Old 07-06-2002, 03:00 PM
eva2000's Avatar
eva2000 eva2000 is offline
 
Join Date: Oct 2001
Location: Brisbane, Australia
Posts: 577
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

hi long time no see

i installed the hack and working fine but moving servers from RH 6.2 apache 1.3.26 to RH 7.3 1.3.26 i'm getting an error when i restart apache

i have in my virtualHost directive

RewriteEngine on
RewriteRule ^/f([0-9]+)/s([^/]+?)$ /forumdisplay.php?forumid=$1&s=$2 [L]
RewriteRule ^/t([0-9]+)/s([^/]+?)\.html$ /showthread.php?threadid=$1&s=$2 [L]
RewriteRule ^/s([^/])+?/$ /index.php?s=$1 [L]

and get this error in restarting apache ?

Syntax error on line 1688 of /usr/local/apache/conf/httpd.conf:
RewriteRule: cannot compile regular expression '^/f([0-9]+)/s([^/]+?)$'

my current forum urls are set as

http://animeboards.com/f1/s
http://animeboards.com/t42538/s.html

hoping you can help me
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 01:36 AM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.06452 seconds
  • Memory Usage 2,366KB
  • Queries Executed 30 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (7)bbcode_code
  • (1)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (16)post_thanks_box
  • (16)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (16)post_thanks_postbit_info
  • (15)postbit
  • (16)postbit_onlinestatus
  • (16)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete