Go Back   vb.org Archive > vBulletin Article Depository > Read An Article > General Articles
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Mod_rewrite tutorial for vB3
cscgal's Avatar
cscgal
Join Date: Aug 2003
Posts: 63

 

Show Printable Version Email this Page Subscription
cscgal cscgal is offline 08-14-2004, 10:00 PM

I've written a detailed tutorial for vBulletin 3 how to go about using mod_rewrite to allow your forum to have clean URLs. It goes so far as to give forum URLs names such as forum-name.html instead of forum-IDnumber.html

It's available here: http://www.daniweb.com/techtalkforums/thread9379.html

I hope that you enjoy it!
Reply With Quote
  #12  
Old 05-11-2005, 05:34 PM
ice9 ice9 is offline
 
Join Date: Jun 2003
Posts: 34
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Dean C -- my experience is not similar to yours, but if you're successful in getting your content indexed without having to hack the urls, that's a huge bonus -- this hack is a major PITA!

cscgal -- I appreciate the work you've put into this. I SEO'd vb2 years ago, and it made a HUGE difference in traffic to my site. I've recently upgraded to vb3, and I'm putting some serious effort into properly rewriting the urls again.

I remember a while back Overgrow.com was one of the first sites I knew of to put work into SEO for vb. Overgrow opted for the archive system, which, IMO, is inferior to cleanly re-written urls. Overgrow pointed me to dbforums.com, they were one of the first sites to successfully use static urls with vb.

I'm working on inserting the thread title into the url. Also, I think duplicate pages are a bad move. A crawler should only receive one version of a page. Scripts like printthread.php and showpost.php present the same content to a bot as showthread.php. This sets you up for a duplicate content penalty. Same thing with cramming variables into hyphenated urls, like this: site.com/forum/t12345-15---2-asc--3.html and site.com/forum/t12345-10-2-10-desc--.html are sloppy, and are often duplicates. Maybe dupes like that should be excluded via robots.txt? I like threads that appear to be in the main directory -- better SEO. I think the ideal url would look like this:

site.com/t(threadid)-(hyphenated thread title)(-pagenumber).html

For example:

site.com/t12345-SEO-vbulletin-2.html

I'm not sure what to do with the perpage variable. I don't really think it's that necessary, and it makes for duplicate urls.

Besides, I think that other showthread/forumdisplay variables can be added on AFTER the .html suffix, like this:

site.com/t12345-SEO-vbulletin-3.html&order=asc&highlight=word&perpage=25

Then, robots.txt could be used to exclude a crawler from any url that has variables after the .html suffix. So, no dupes.

Either way, if a variable is empty, its hyphen shouldn't be in the url. This looks bad:

site.com/t12345----10---asc-.html

Also, watch for the "." character in your .htaccess file. It's a regex wildcard, and will need to be backslash-escaped if it is to represent a period, as in \.html.

Most SEO vb hacks don't allow for styleid adjustments via the dropdown menu.

Some sites use a default style for re-written urls for non-registered members, and then feed another style to registered members. So the bots get the rewritten urls, and members get the real ones. I disagree with this -- better rankings are accorded to urls that are used, and linked to on other sites. When members are on other sites, and they link to your threads, it should be with properly rewritten urls.

mod_rewrite has a logging function that can be very useful, although it's rather verbose, even at the lower settings.

Hope this helps -- sorry for the long post. This is an extremely complex hack that most sites are not using to its full potential.
Reply With Quote
  #13  
Old 06-04-2005, 11:25 PM
vktechnology vktechnology is offline
 
Join Date: Jul 2004
Location: London, England
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

very cool,
URL friendly, human readable,
it is good for user to remeber URL
It look like static page
Reply With Quote
  #14  
Old 06-20-2005, 09:48 AM
cristi71000 cristi71000 is offline
 
Join Date: Jun 2005
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

Is this optimisation working for vBulletin forums hosted on IIS? And if not are there any alternatives?

Thanks,
Cristian
phoneheaven.org
Reply With Quote
  #15  
Old 06-20-2005, 04:44 PM
deathemperor's Avatar
deathemperor deathemperor is offline
 
Join Date: Jul 2003
Location: HOL
Posts: 1,270
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I think this is unnecessary since vb offers HTML package too for your site.
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:27 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04779 seconds
  • Memory Usage 2,237KB
  • Queries Executed 19 (?)
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
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_article
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (5)post_thanks_box
  • (5)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (5)post_thanks_postbit_info
  • (4)postbit
  • (5)postbit_onlinestatus
  • (5)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