vBulletin vBulletin 4 to vBulletin 5 post upgrade issue

vBulletin,

vBulletin,

Many of my friend faced some common issues for vBulletin post upgrades, specially vBulletin 4 to vBulletin 5.
So I am writing post vBulletin issues and solution to overcome them.

1. Login issue:

Issue: Not able to login to admincp due to few fields missing after upgrade. System shows invalid field “password”
Solution: Added new field as “password” in “user” table


2. Handling OLD URLs:

Issue: After upgrade old URLs showing Invalid URL error due to change in URL structure in version 5.x

Considering below structure:
assumed you have domain ‘www.example.com’ and vbulletin at ‘www.example.com/forums’

Old URL: www.example.com/forums/fxx/web-developer-xxx/
New URL: www.example.com/forums/forum/jobs/new-jobs/xxx-web-developer#postxxx

Solution: Need to do some changes in routing file.

file: includes/vb5/frontend/routing.php
– Add below code near line no 239 just before throw new vB5_Exception_404(“invalid_page_url”);

Assuming $path will give current page. Or else assign current url to $path variable.


3. Removing forum word from all URLs:

Considering below structure:
assumed you have domain ‘www.example.com’ and vbulletin at ‘www.example.com/forums’

in your admincp change vBulletin URL to ‘www.example.com’ instead of ‘www.example.com/forums’ and Add following rules on .htaccess file :


4. registration page issue:

Issue: Old registration link not working :

Considering below structure:
assumed you have domain ‘www.example.com’ and vbulletin at ‘www.example.com/forums’

Old registration URL: www.example.com/forums/register.php
New registration URL: www.example.com/forums/register

Solution: Add below code on top of register.php file.


5. redirect old .html pages to new URL’s

issue: Old .html pages like http://yoyrdomain.com/forums/web-hosting-forum/101-how-change-default-page-url.html

Solution:
i. Add below code in .htaccess file to redirect all .html pages to one php script (this new file will handle vBulletin redirection)

ii. Create new php file on forum directory (old_url.php) and add below code on it

Enjoy vBulletin 5.x version without hampering SEO !!

Leave a Reply

Your email address will not be published. Required fields are marked *