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

Reply
 
Thread Tools
Spider Friendly URL hack Details »»
Spider Friendly URL hack
Version: 1.00, by krohnathlonman krohnathlonman is offline
Developer Last Online: Dec 2008 Show Printable Version Email this Page

Version: 3.0.3 Rating:
Released: 09-26-2004 Last Update: Never Installs: 10
Is in Beta Stage  
No support by the author.

I've started using better URLs for the search engines and I'm looking for some advice on what templates to modify. I also don't have the multi page part working right currently so I could use some help on that.

I haven't figured out the part to go to specific posts quite yet but I thought I'd share what I have so far.

URLs for the threads now look like this:
http://www.iamnotageek.com/t-76948.html

Insert this into your .htaccess file in your forum base directory.
Code:
  RewriteEngine on
  RewriteRule ^t-([0-9]+) showthread.php?t=$1 [L]
Now test it by using a URL like domain.com/forum/t-THREADID.html

If that shows the thread properly THEN go into your admincp and use the template search function. Do a search for showthread.php and start editing those templates to send people to these new URLs. Don't modify things like the next page links.

This could potentially raise CPU usage quite a bit but my site pulls a decent amount of people per day and I'm not noticing much of a spike in CPU usage.

This can also be done for forums. I've done it here http://iamnotageek.com/f-46.html

If I can get the next page system working right I'll get the full instructions together.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 09-29-2004, 07:09 AM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Maybe you should just MOD_Rewrite like dbforums.com. -shurgs-
Reply With Quote
  #23  
Old 09-29-2004, 12:27 PM
msimonds msimonds is offline
 
Join Date: Aug 2003
Location: Dallas, Texas
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

here is the link to Dani's mod_rewrite. I use it on my forums and it works perfectly

http://www.daniweb.com/techtalkforums/thread9379.html
Reply With Quote
  #24  
Old 09-29-2004, 12:44 PM
58sniper 58sniper is offline
 
Join Date: Sep 2002
Posts: 127
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

mod_rewrite is how we pulled it off at http://www.gurusnetwork.com/discussion/

Keep in mind that you'll be touching a LOT of templates to complete it.
Reply With Quote
  #25  
Old 09-29-2004, 03:31 PM
krohnathlonman krohnathlonman is offline
 
Join Date: Feb 2004
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This is using mod_rewrite guys..... Dani's tutorial has some good ideas, but I had already achieved everything I was trying to do before I saw it.....

I went about doing basically the same thing in a different way... I ended up hacking up more PHP files.
Reply With Quote
  #26  
Old 09-30-2004, 10:39 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

If you can Figure out how to make links the forumtitles, then it would be much more usefull to spider.

Instead of:
www.mysite.com/forum/forumdisplay.php?f=1

it could be :
www.mysite.com/forum/f-$forum[title].html
www.mysite.com/forum/f-site-announcements.html And replace spaces with a dash (-) an force all lowercase letter. The that will make vb3 true spider friendly!
Reply With Quote
  #27  
Old 10-01-2004, 02:50 PM
Polo's Avatar
Polo Polo is offline
 
Join Date: Jun 2004
Posts: 893
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

looking good
Reply With Quote
  #28  
Old 10-01-2004, 06:30 PM
msimonds msimonds is offline
 
Join Date: Aug 2003
Location: Dallas, Texas
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Live Wire
If you can Figure out how to make links the forumtitles, then it would be much more usefull to spider.

Instead of:
www.mysite.com/forum/forumdisplay.php?f=1

it could be :
www.mysite.com/forum/f-$forum[title].html
www.mysite.com/forum/f-site-announcements.html And replace spaces with a dash (-) an force all lowercase letter. The that will make vb3 true spider friendly!
Danni's mod_rewrite already does this, there are two versions in her post!

It is easy to put in place and remove if so needed
Reply With Quote
  #29  
Old 10-01-2004, 06:33 PM
Logikos Logikos is offline
 
Join Date: Jan 2003
Posts: 2,924
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Without having to edit the file everytime you need to add/delete a new forum.
Reply With Quote
  #30  
Old 10-01-2004, 06:38 PM
msimonds msimonds is offline
 
Join Date: Aug 2003
Location: Dallas, Texas
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

yes you can do this! If you want help? Contact me on one of my IM's
Reply With Quote
  #31  
Old 10-01-2004, 06:42 PM
msimonds msimonds is offline
 
Join Date: Aug 2003
Location: Dallas, Texas
Posts: 157
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I did my own forum and three others

check out this one that I did it to! http://www.sectalk.com/boards, it has many forums

* this is not my 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 12:39 PM.


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.04415 seconds
  • Memory Usage 2,299KB
  • Queries Executed 25 (?)
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)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)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