Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
vRewrite - SEOed URLs for vBulletin Details »»
vRewrite - SEOed URLs for vBulletin
Version: 1.5.1, by Immortal Immortal is offline
Developer Last Online: May 2010 Show Printable Version Email this Page

Version: 3.5.3 Rating:
Released: 01-04-2006 Last Update: 05-15-2006 Installs: 506
Uses Plugins Template Edits
Additional Files  
No support by the author.

About

vRewrite is an advance but simple system to rewrite vB's URLs. The rewrite system uses preg_match_all and str_replace to rewrite the URLs. It will rewrite any URLs that are dynamic ex: showthread.php?t= to /the-forum/title-of-the-forum-id.html. Why? SEs (Search Engines) rate results based on filename. Not only that, but most SEs give a "boost" to static URLs (what we do here) versus dynamic URLs. vRewrite accomplishes both of this, for all URLs that a search engine (or a guest) will see.

Installation

Please download vRewrite.zip and read install.html for more information on how to install it.

Requirements

vRewrite assumes that you are using Apache with the mod_rewrite module enabled, and running vBulletin 3.5.x. However, if you ask for support here on IIS' module or on vBulletin 3.0.x - I will be more then happy to assist you.

Contributions

I would like to thank Chroder and Cole for assisting me release vRewrite. I could not have released it if it wasn't for them.

I would like to thank the following people/boards for helping beta test vRewrite and making it a better product.

Gaming Ultimate, BP Gaming, NBS Designz Cyclez, Hosting-Talk and Forum University.

Copyright

I've spent many hours working and perfecting vRewrite. The only thing I ask you to do is if you use it, please keep the link back. If you wish to put it in your style instead, simply remove or comment out that line. However, if you use vRewrite you MUST link back. That is the only thing I ask.

Known Issues

There are no known issues with the latest release (1.0).

Support / Issues

If you have any problems or discover a bug please post here in this thread. I have also included my email in the install.html email for one-on-one support. The only thing I ask you is please do not post this email address publicly - it is my personal email.

Changelog

1.5 Release - vRewrite 1.5 has become stable, and all users under 1.5 RC3 and 1.0 need to upgrade. Support for 1.0 will no longer be offered, and you will be told simply to upgrade. Please continue to keep all bug and feature suggestions on the bug tracker at:

Code:
http://www.techhelpforum.com/vrewrite
1.1 Release - Several bug fixes, and a few new features. Details here.

03/26/06 - Updated the thread to reflect vRewrite 1.5 Beta links. vRewrite files has NOT changed.

03/11/06 - Updated the thread to take advantage of vB.org's new prefix feature. vRewrite itself has NOT changed.

1.0 Release (02/19/06) - I have released the much awaited 1.0. This is the first stable release of vRewrite. All users now should be safe installing vRewrite. For more information, and how to upgrade, please see here.

1.0 Preview (01/12/06) - I have released a preview version of 1.0. This is the final version before 1.0 is considered stable. I believe everything should work in this new preview, but one bug (see known issues). Please see here for more information and how to upgrade.

01/05/06 - Updated ZIP to include a fix for boards running a table prefix. You do not need to upgrade unless you previously had SQL errors. You can upgrade by importing the product and choose "Allow Overwrite".

Donations

Any donations are very much appreciated! I do this out of my free time and work many hours on it - all for free. Anything to help is always very welcomed

If you use vRewrite, please click Install. This helps you keep track of additional upgrades and shows to me that you care about vRewrite


You may not post vRewrite ZIP or any files contained in the ZIP on any website. You may not also post any support requests/give support on any website other then this one, without my permission. If you do so, you will get a DMCA for copyright infringement. I do not want this spread to pirated users. Please stop piracy and do not share the source outside of this thread and vB.org/com. Thanks.

Support will only be obtained at:
https://vborg.vbsupport.ru/forumdisplay.php?f=182

Supporters / CoAuthors

Show Your Support

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

Comments
  #1052  
Old 04-16-2006, 02:31 PM
vasudeva's Avatar
vasudeva vasudeva is offline
 
Join Date: Sep 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Also getting 'Not Found' errors.

Just installed the new 1.5 release on a clean build of vB 3.53. I don't have any hacks installed I can imagine conflicting.

The product is enabled through the admincp.

mod_rewrite is working on other vhosts on the same box.

I've got the forumroot under a directory called 'f'.

I made the edits to the three templates mentioned in the install.html.

I've tried using both the default .htaccess rewrite rules and the ones generated by the auto-generator in the other thread.

If I navigate to /f/, I see the forum display as I expect.

If I click on a link to a subforum, I get:

Code:
Not Found

The requested URL /f/f-boston-beer-party-15.html was not found on this server.
If I click on a link to the latest updated thread in the 'Last Post' column, I get:

Code:
Not Found

The requested URL /showthread.php was not found on this server.
I've tried adding 'RewriteBase /f' to the .htacces as specified in the install.html, but with that option, I get:

Code:
Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.
and the apache2 error log shows:

Code:
mod_rewrite: maximum number of internal redirects reached. Assuming configuration error. Use 'RewriteOptions MaxRedirects' to increase the limit if neccessary.
(Incidentally, the install.html lists that option with a space, as 'Rewrite Base', which causes Apache to report an error. Probably want to fix that...)

Now, if I manually prepend the /f/ directory onto the rules, like so:

Code:
RewriteRule ^(.*)/(showthread\.php)$ f/showthread.php?&%{QUERY_STRING} [L]
then clicking on the link on forumdisplay's 'Last Post' column does work as desired, but only for that one rule. Everything else I can think to try still breaks.

Let me know if I've left any info out.
Reply With Quote
  #1053  
Old 04-16-2006, 02:38 PM
redlabour's Avatar
redlabour redlabour is offline
 
Join Date: Mar 2004
Location: Wuppertal, NRW, Germany
Posts: 1,541
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Is it a german Board ?
Reply With Quote
  #1054  
Old 04-16-2006, 05:37 PM
cd1986 cd1986 is offline
 
Join Date: Sep 2005
Location: UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

@vasudeva - Does your .htaccess file include RewriteBase /f (if it wasn't generated automatically)?

Got the official 1.5 working nicely on my test forum, also been trying to play about with the file name output...things like threadname-tid instead of t-threadname-id...again it's working fine on my test board, although i get db errors when trying to actvate it on my main board.

But as far as the default mod goes, working just as it should - thanks for producing it.
Reply With Quote
  #1055  
Old 04-16-2006, 06:20 PM
vasudeva's Avatar
vasudeva vasudeva is offline
 
Join Date: Sep 2004
Posts: 16
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by redlabour
Is it a german Board ?
No, American English. Haven't touched any language or internationalization settings.



Quote:
Originally Posted by cd1986
@vasudeva - Does your .htaccess file include RewriteBase /f (if it wasn't generated automatically)?
Yes, as posted:

Quote:
Originally Posted by vasudeva
Also getting 'Not Found' errors.

[...]

I've tried adding 'RewriteBase /f' to the .htacces as specified in the install.html, but with that option, I get:

Code:
Internal Server Error
It didn't work and in fact produced some sort of looping situation. It was not auto-generated by the helper script.
Reply With Quote
  #1056  
Old 04-16-2006, 06:28 PM
cd1986 cd1986 is offline
 
Join Date: Sep 2005
Location: UK
Posts: 79
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Sorry, didn't see that part of the post 1st time round. Have you tried adding $myurl to the front of the re-written paths instead of /f/ ?

EDIT: btw, i think the product file contains two showthread.php?f=xyz&page= url replacements. Once i changed the top one to showthread.php?t=xyz&page= i could access all thread pages, whereas before i got invalid link errors.

PHP Code:
        #------------------------------
    # Replace showthread.php?t=XYZ&page=
    #------------------------------

    
$found preg_match_all('#<a href="showthread\.php\?t=([0-9]+)&amp;page=([0-9]+)"#i'$output$matches);

    if(
$found) {
        
$ids = array();
        
$test = array();
        for(
$i 0$i $found$i++) {
            if(
is_numeric($matches[1][$i])) {
                
$ids[] = $matches[1][$i];

                
$tid =$matches[1][$i];
                
$test["$tid"]["page$i"] = $matches[2][$i];
                        }
        }
        for (
$i 0$i < (count($ids)); $i++) {
            
$fname urlize($GLOBALS[foruminfo][title]); 
            
$title urlize($GLOBALS[vRewrite_thread]["$ids[$i]"][title]);
            
$tid $ids[$i];
            
$page $test["$ids[$i]"]["page$i"];
                           
$parentid $GLOBALS[foruminfo][forumid];
            if (empty(
$fname)) {
                            
$parentid $GLOBALS[vRewrite_thread]["$ids[$i]"][ownerid];
                            
$fname urlize($GLOBALS[vRewrite_forum][$parentid][title]);

            }

            
$new = (($vbulletin->options['vRewrite_showthread'] == 1) ? $fname 'f-' $fname '-' $parentid);
            if(
$vbulletin->options['vRewrite_page'] == "1") {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;=$page\"""<a href=\"$new/$title-page$page-t$tid{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            } else {
                
$output str_replace("<a href=\"showthread.php?t={$tid}&amp;page=$page\"""<a href=\"$new/$title-t$tid/page$page{$vbulletin->options['vRewrite_extension_showthread']}\""$output);
            }
        }
    } 
Reply With Quote
  #1057  
Old 04-16-2006, 08:28 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will support people more soon. I am a bit busy these days. My apologies.
/me hopes Tyler (Immortal) can help
Reply With Quote
  #1058  
Old 04-16-2006, 08:40 PM
jdingman jdingman is offline
 
Join Date: Jul 2005
Location: Canada
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Not Found
The requested URL /search-getnew.html/ was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
anyone else getting this?
Reply With Quote
  #1059  
Old 04-16-2006, 10:50 PM
Bhuwan's Avatar
Bhuwan Bhuwan is offline
 
Join Date: Jul 2004
Location: USA
Posts: 425
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

if you are NOT rewriting member.php, you need the following in your htaccess file
Code:
RewriteRule ^(.*)/(member\.php)$ member.php?$1&%{QUERY_STRING} [L]
Reply With Quote
  #1060  
Old 04-16-2006, 10:51 PM
jdingman jdingman is offline
 
Join Date: Jul 2005
Location: Canada
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Bhuwan, was that towards me? I am rewriting members.php and that works fine, it was just the search portion that wasn't working...
Reply With Quote
  #1061  
Old 04-17-2006, 03:02 AM
morrow's Avatar
morrow morrow is offline
 
Join Date: Mar 2002
Location: NJ
Posts: 370
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Ok, I've installed and it appears to be working fine now. I'll test more in tomorrow. Just one question...

How will a post like this "http://www.njflyfishing.com/vBulletin/north-eastern-general-discussion-forum/t-fishing-regulation-question-4368.html"

get spidered?

If I do a google search for, "North Eastern...etc..." Will it come up, or do people have to search for, "north-eastern-...etc..."?

Why the dashes? Also, do I really need the prefix's before each link. Can I remove the dashes? Would it make sense?

Submitting to google like this... SHould I submit, www.mysite.com or www.mysite.com/vBulletin

Thanks!

Thanks!
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 02:02 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.06502 seconds
  • Memory Usage 2,362KB
  • 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
  • (8)bbcode_code
  • (1)bbcode_php
  • (4)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
  • (4)pagenav_pagelink
  • (5)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