Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > Premium Archives > vRewrite - SEOed URLs for vBulletin

Reply
 
Thread Tools
Try this version if you are having problems. Details »»
Try this version if you are having problems.
Version: , by jlaine jlaine is offline
Developer Last Online: Jun 2009 Show Printable Version Email this Page

Version: Unknown Rating:
Released: 06-10-2006 Last Update: Never Installs: 0
 
No support by the author.

This is the most up to date 1.5.1 that I'm aware of - a lot of the bugs being reported here with people that say they have 1.5.1 are fixed in this one - they were done on the fly and hopefully this will repair a lot of the issues people are having.

This should hopefully give Immortal and Bhuwan some time to focus on the current issues and not backtrack through all the existing ones when some have been patched already.

Use the existing installation instructions to install - they are available from the other download.

Verify you have your .htaccess looking like this:
(NOTE!!! - I'm not using .html as an extension - if you are, use the .htaccess set beneath this one!)

Code:
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]  	 
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+)$ showthread.php?p=$4&%{QUERY_STRING} [L] 	 
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+)$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+)$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L] 	 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+)/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^search-([A-Za-z0-9\-]+)/$ search.php?do=$1 [L] 	 
RewriteCond %{REQUEST_FILENAME} !-f 	 
RewriteCond %{REQUEST_FILENAME} !-d 	 
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]
Use if you are using .html as an extension:

Code:
RewriteRule ^(.*)/(styleid=(.*))$ showthread.php?&%{QUERY_STRING} [L]  	 
RewriteRule ^(.*)/(showthread\.php)$ showthread.php?&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-new.html$ showthread.php?t=$3&goto=newpost&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-last.html$ showthread.php?t=$3&goto=lastpost&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)-post([0-9]+).html$ showthread.php?p=$4&%{QUERY_STRING} [L] 	 
RewriteRule ^p-([A-Za-z0-9\-]+)-post([0-9]+)/postcount([0-9]+).html$ showpost.php?p=$2&postcount=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html$ showthread.php?t=$3&page=$4&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html/(.*)$ showthread.php?t=$3&%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^(.*)/t-([A-Za-z0-9\-]+)-([0-9]+).html$ showthread.php?t=$3&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^u-([A-Za-z0-9\-]+)-([0-9]+).html$ member.php?u=$2&is_vrewrite=yes&%{QUERY_STRING} [L] 	 
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L] 	 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+)/page([0-9]+).html/(.*)$ forumdisplay.php?f=$2&&page=$3%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^f-([A-Za-z0-9\-]+)-([0-9]+).html/$ forumdisplay.php?f=$2&%{QUERY_STRING}&is_vrewrite=yes [L] 	 
RewriteRule ^search-([A-Za-z0-9\-]+).html/$ search.php?do=$1 [L] 	 
RewriteCond %{REQUEST_FILENAME} !-f 	 
RewriteCond %{REQUEST_FILENAME} !-d 	 
RewriteRule ^(.*)/(.*)(\.php)$ $2.php?&%{QUERY_STRING} [L]
Things that ARE wrong with this version:
Member links under thread titles on forumdisplay.php are not working properly (has / at the end of the URL, not supposed to rewrite with that, can modify .htaccess to accomodate, but assuming the code will be updated instead.)
Redirect from logging in by hitting new thread/new reply will result in an invalid URL, data isn't passed through correctly.

That's what I can recall off the top of my head right now... Hopefully this will all get ironed out soon.

Download Now

File Type: (21.4 KB, 444 views)

Show Your Support

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

Comments
  #12  
Old 07-21-2006, 03:28 PM
Roadster2004 Roadster2004 is offline
 
Join Date: Feb 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'm keeping the problem that when I turn this one.. Noboby can browse to page 2 or further ?! Somebody any ideas ?
Reply With Quote
  #13  
Old 07-29-2006, 02:58 PM
Aunt Clara Aunt Clara is offline
 
Join Date: Jun 2006
Posts: 75
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I had that same problem. I solved it by switching "Showthread.php: Pages" to the other option (in vBulletin Options/vBrewrite).
Reply With Quote
  #14  
Old 07-29-2006, 09:20 PM
Roadster2004 Roadster2004 is offline
 
Join Date: Feb 2006
Posts: 6
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aunt Clara
I had that same problem. I solved it by switching "Showthread.php: Pages" to the other option (in vBulletin Options/vBrewrite).
It worked!! Great
Reply With Quote
  #15  
Old 07-30-2006, 05:29 PM
Immortal Immortal is offline
 
Join Date: Jul 2005
Location: Cincinnati, OH
Posts: 403
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Make sure you're using the .htaccess generator as well, helps out a bunch.
Reply With Quote
  #16  
Old 08-13-2006, 07:38 PM
Blindchild02's Avatar
Blindchild02 Blindchild02 is offline
 
Join Date: Apr 2002
Location: USA
Posts: 741
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Aunt Clara
I had that same problem. I solved it by switching "Showthread.php: Pages" to the other option (in vBulletin Options/vBrewrite).
that works, but could someone make a fix for it? because im sure re-writing showthread would help alot with seo.

EDIT: nm use htaccess generator to fix the problem !
Reply With Quote
  #17  
Old 08-15-2006, 10:14 PM
ctsolutions ctsolutions is offline
 
Join Date: Dec 2002
Posts: 68
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

sorry, I installed on vbulletin 3.6 and has :hurt: works so far.
I just played with the vRewrite settings in the admincp and now I'm going in truble.

Can I reset the settings to "Default"

sorry, my fault :hurt:

thanks,
mike
Reply With Quote
  #18  
Old 08-21-2006, 03:22 PM
magnus's Avatar
magnus magnus is offline
 
Join Date: Apr 2002
Location: Miami, FL
Posts: 1,107
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I was having the problem a few others reported, having the " / " appended to the end of my "getnew" and "getdaily" search functions. Within the "vRewrite - main script" plugin, I found the following lines (note the appended " / " at the end):

Code:
$output = str_replace("search.php?do=getnew","$myurl/search-getnew{$vbulletin->options['vRewrite_extension']}/",$output);
$output = str_replace("search.php?do=getdaily","$myurl/search-getdaily{$vbulletin->options['vRewrite_extension']}/",$output);
I modified it to:

Code:
$output = str_replace("search.php?do=getnew","$myurl/search-getnew{$vbulletin->options['vRewrite_extension']}",$output);
$output = str_replace("search.php?do=getdaily","$myurl/search-getdaily{$vbulletin->options['vRewrite_extension']}",$output);
Now, everything is working fine.
Reply With Quote
  #19  
Old 09-01-2006, 05:58 PM
minorgod's Avatar
minorgod minorgod is offline
 
Join Date: Aug 2006
Posts: 23
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Immortal
Make sure you're using the .htaccess generator as well, helps out a bunch.
Where is the .htaccess generator?
Reply With Quote
  #20  
Old 09-01-2006, 06:21 PM
Immortal Immortal is offline
 
Join Date: Jul 2005
Location: Cincinnati, OH
Posts: 403
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

<a href="https://vborg.vbsupport.ru/showthread.php?t=112024" target="_blank">https://vborg.vbsupport.ru/showthread.php?t=112024</a>
Reply With Quote
  #21  
Old 09-17-2006, 08:28 AM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all my images are broken?

thread example
Code:
http://www.beasttoast.com/forum/wtf-is-beasttoast/t-span-stylecolorspan-stylecolorgreenbeast-toast-isspanspan-1.html
image src:
Code:
http://www.beasttoast.com/forum/wtf-is-beasttoast/styles/dj/buttons/report.gif
when the image src should be:
Code:
http://www.beasttoast.com/forum/styles/dj/buttons/report.gif
any help?
Reply With Quote
Reply

Thread Tools

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 05:56 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.04973 seconds
  • Memory Usage 2,333KB
  • Queries Executed 26 (?)
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
  • (3)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
  • (2)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
  • (1)postbit_attachment
  • (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_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete