PDA

View Full Version : Redirect VB 4 urls to VB 5


temsamane
02-13-2014, 11:59 AM
i had my vb4 installation in www.example.com/forums

the new vb5 installation is in www.forums.examle.com

now i want to redirect all urls from old installation to the new one. How can i do this?

When i visit the old urls, i get:

Warning: Division by zero in ..../includes/functions.php on line 2968

Fatal error: Call to undefined method vB_Template_Runtime::vBVar() in /home/public_html/forums/includes/class_core.php(4715) : eval()'d code on line 76

Seven Skins
02-13-2014, 12:11 PM
I guess you can redirect by using htaccess file.

Try putting this htaccess code in www.example.com/forums/ folder

RewriteEngine On
RewriteRule (.*) http://www.forums.example.com/$1 [R=301,L]

Not tested but should work.

temsamane
02-13-2014, 12:21 PM
thank you Seven Skins,

but the url structure of vb5 is forum.example.com / subject title

so its not like the vb4 with numbers structure, like url / showthread.php?t=17718

--------------- Added 1392297974 at 1392297974 ---------------

i tested it, and its working. Thank you Very Much!!

its automatically redirects to the new url structure (from the general vbulletin url structure)

Seven Skins
02-13-2014, 12:36 PM
Glad it is working.

If some clicks your old url they will be redirected to the new urls .. and slowly in weeks and months .. all the bookmarks and google links will update..

Make sure this htaccess stays there forever.