vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   Spider friendly URLs (https://vborg.vbsupport.ru/showthread.php?t=18035)

fastforward 05-24-2001 10:00 PM

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 :D

eva2000 05-25-2001 05:45 AM

got a demo/example url for us ?

fastforward 05-25-2001 12:36 PM

Quote:

Originally posted by eva2000
got a demo/example url for us ?
http://dbforums.com

You can see the forum links on the front page are like :

http://dbforums.com/f5/s



and the threads are like:

http://dbforums.com/t44153/s.html

Overgrow 05-25-2001 03:17 PM

Hey very cool.. I haven't looked at the code yet, but nice job.

One note though: The main point of my hack is getting Google to the archives, not really friendly URLs.. that was just a sidenote. The archiving is what I'm after.

eva2000 05-25-2001 11:06 PM

yeah cool but do normal showthreads and forumdisplay urls still work ?

i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

http://animeboards.com/f2/s ?

fastforward 05-25-2001 11:27 PM

Quote:

Originally posted by eva2000
yeah cool but do normal showthreads and forumdisplay urls still work ?

i.e would a url like http://animeboards.com/forumdisplay.php?s=&forumid=2 still work as well as

http://animeboards.com/f2/s ?

hehe. Oh ye of little faith

Yeah they do. :)

The only urls that are trapped by the mod_rewrite directives are ones that match one of these three expressions:
Code:

^/f([0-9]+)/s([^/]+?)$
^/t([0-9]+)/s([^/]+?)\.html$
^/s([^/])+?/$

ie.
/f234/s or /f234/s345345detr3
/t2343/s.html or /t2343/s435345.html
/s/ or /s435345345dfsdf/

Actually I need to clarify in the docs that this assumes your forums are in the web root. Those directives should be prefixed with /forums/ or wherever if your vB is installed elsewhere.

eva2000 05-25-2001 11:28 PM

cool.. yet another hack i'm gonna add hehe

eva2000 05-25-2001 11:30 PM

oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images

fastforward 05-26-2001 01:04 AM

Quote:

Originally posted by eva2000
oh wait any problems you can see running both overgrow's search engine spidering hack and yours together ? i also use htacess to use mod_rewrite to prevent hot linking of my forum images
No problems at all. I just installed Overgrows :)

http://dbforums.com/archive/

I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:
Code:

RewriteRule ^/archive/.* /archive/index.php [L]
But either method will work.

eva2000 05-26-2001 01:42 AM

Quote:

Originally posted by fastforward

No problems at all. I just installed Overgrows :)

http://dbforums.com/archive/

I did make one change to Overgrows though so that I wouldn't need to use .htaccess files. I deleted the .htaccess and added this to my httpd.conf:
Code:

RewriteRule ^/archive/.* /archive/index.php [L]
But either method will work.

okay great then :)


All times are GMT. The time now is 02:04 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.01203 seconds
  • Memory Usage 1,740KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete