Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
DC SEO vB URL Rewrite Details »»
DC SEO vB URL Rewrite
Version: 1.00, by Dean C Dean C is offline
Developer Last Online: Nov 2023 Show Printable Version Email this Page

Category: Major Additions - Version: 3.5.0 Beta 3 Rating:
Released: 06-28-2005 Last Update: Never Installs: 264
Uses Plugins
Is in Beta Stage  
No support by the author.

[high]Removed until further notice[/high]

[DC Seo vB URL Rewrite]

Information
  • [high]vBulletin Version:[/high] 3.5.x
  • [high]Author:[/high] Dean Clatworthy
  • [high]Copyright:[/high] You may use this modification at your own risk. I cannot and will not be held responsible for any damage you may cause to your forums during installation or thereafter. You may not distribute this modification in whole or parts and anyone found doing so faces risk of prosecution. All my modifications are released at vBulletin.org and anyone found releasing them elsewhere also faces risk of prosecution. You may not translate this modification without my prior permission.
  • [high]Donations:[/high] I release my modifications for free. If you wish to donate please contact me and I will give you my details. All donations are graciously appreciated.
What does this modification do?
This modification will allow you to automatically have more search engine friendly URLs in your vBulletin. A forum which would normally display as forumdisplay?f=1 will now appear as f1-forumtitle.html and the same with threads. Having keywords in your URL can be of an advantage in search-engine ranking.

Requirements:
  • You must have mod_rewrite apache module enabled on your server. Contact your host for more information.
  • This will not work well for non-english boards as it strips most non-alpha numeric characters. E.g. ? would be stripped on french boards etc

Installation

1/

Please read the readme.txt file included in the zip for details on how to install this modification.


Please Click Install!
If you installed this modifcation please click the install button. It'll help you keep up to date with future releases and important bugfixes, security updates.

Show Your Support

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

Comments
  #72  
Old 07-22-2005, 05:08 PM
Dean C's Avatar
Dean C Dean C is offline
 
Join Date: Jan 2002
Location: England
Posts: 9,071
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

That will not work though calorie. That will do an internal redirect to the old URL. Therefore deeming the new URLs useless to the search engines.
Reply With Quote
  #73  
Old 07-22-2005, 11:08 PM
monstergamer's Avatar
monstergamer monstergamer is offline
 
Join Date: Feb 2003
Location: around the corner
Posts: 433
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by lierduh
I could well be blind. A quick check shows the hack does not provide
301 redirect for the old urls. This is actually quite dangerous, at
least for Google. Google has been putting a lot of web sites on
duplicate contents penalty. If Google discovers two urls serve the
same page, the site/pages will be penalized. A classic example is
'www.site.com' and 'site.com' serve the same contents. There are many
PR5 or higher (page rank) sites become PR0 due to the penalty. It is
reported that these sites are penalized for at least 6 months before
they reappear in the index at the right position.

A few signs of sites being penalized:

1) Do a search for "forums.yoursite.com" (include the double quotes),
if the site is not returned first, bad luck.
2) Search for
site:forums.yoursite.com

If the result returns with a lot of URLs only without description, or
if a lot of your pages are listed in the Supplementary Index. Some sort of
penalty is in place.

A Google recommended way to create new URLs is to serve 301 header for
the old URLs. 301 means permanent redirect. So Google does not need to cache both
URLs. 301 can be easily implemented using .htaccess file.
i did not think of that...OMG
is there any way we can fix that ASAP
Reply With Quote
  #74  
Old 07-23-2005, 01:16 AM
lierduh lierduh is offline
 
Join Date: Jan 2003
Location: Sydney, Australia
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Off the top of my head, I can't think of an easy way to redirect the old URLs to the new ones. This method uses .htaccess to redirect the new URLs and spoof the content of the old one.
Without reading the dry apache manual, I don't know an easy way on top of my head either.

You can also do it at script level, eg.:

Add an additional parameter to the Rewriterules for the URLs matched. eg.

RewriteRule ^f([0-9]+)-([A-Za-z0-9\-]+)\.html$ forumdisplay.php?f=$1&seourl=1 [L]

This way the new url will provide $_GET['seourl'] == 1 to the script.

If !isset ($_GET['seourl']), then

header("HTTP/1.1 301 Moved Permanently");
header("Location: http://site/new_seo_url");
Reply With Quote
  #75  
Old 07-23-2005, 02:15 PM
twin twin is offline
 
Join Date: Mar 2005
Posts: 17
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have some problems in rewriting url for list of threads, it is template problem. I checked default style and all works fine. So my question is what template should I edit to make some changes in the list of threads page.

Example of list of threads https://vborg.vbsupport.ru/forumdisplay.php?f=111
Sorry for bad english
Reply With Quote
  #76  
Old 07-23-2005, 11:33 PM
lierduh lierduh is offline
 
Join Date: Jan 2003
Location: Sydney, Australia
Posts: 459
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Off the top of my head, I can't think of an easy way to redirect the old URLs to the new ones. This method uses .htaccess to redirect the new URLs and spoof the content of the old one.
Ok, remember something now.

You can use RewriteCond ^{QUERY_STRING}$ to catch the query_strings following by a RewriteRule.
Reply With Quote
  #77  
Old 07-30-2005, 07:58 PM
Aros Aros is offline
 
Join Date: Mar 2002
Location: Netherlands
Posts: 35
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this hack be usable for the new release RC1?
Reply With Quote
  #78  
Old 07-31-2005, 08:31 PM
onkelchen onkelchen is offline
 
Join Date: Aug 2004
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Dean C
Updated to v1.2:

Fixed a bug with stickies showing up as the normal URL.
... but still buggy.

Great work so far, but there are some minor problems:

First, the stickies aren't completely rewritten. Once a sticky-thread reaches page 2, the links to these pages aren't being rewritten and are shown in the normal view. The first page is still fine.

Same problem on the thread view. First page is fine, but links to following pages aren't rewritten.

Not seriously necessary, but announcements and member profiles should be rewritten too.
Reply With Quote
  #79  
Old 07-31-2005, 08:36 PM
smashingyoungma smashingyoungma is offline
 
Join Date: Aug 2004
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

So far as RC1 goes, it works fine on my board. Upgraded from beta 4, and didn't need to reinstall it or anything.
Reply With Quote
  #80  
Old 07-31-2005, 09:05 PM
Sovereign Sovereign is offline
 
Join Date: Apr 2004
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this work with the .htaccess included in amykhar's Userpage hack?
Reply With Quote
  #81  
Old 07-31-2005, 11:26 PM
Tigga's Avatar
Tigga Tigga is offline
 
Join Date: Dec 2001
Location: Atlanta
Posts: 1,061
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks for this Dean.
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 04:29 AM.


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.08913 seconds
  • Memory Usage 2,312KB
  • 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
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)pagenav_pagelinkrel
  • (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