![]() |
for those asking for phpbb3, this script will work for that with a few mods.
I successfully used it this weekend for a phpbb3 -> vb4 CMS swap. Works just fine. |
OK, here's what I did. Keep in mind it may not work for you, depending on your setup.
I was upgrading from phpbb 3.0.3 to vB CMS 4.0. the old forum was on www.mydomain.com/forum. The new CMS was installed in the root. Most of the code works just fine, but here's exactly what I changed from the default 404.php you can download off of this page (as of today anyway). change Code:
$old_folder = 'phpBB/'; Code:
$old_folder = 'forum/'; change Code:
$standard_404 = 'http://www.example.com/not_found.html'; Code:
$standard_404 = 'http://www.mydomain.com/404.shtml'; change Code:
$new_domain = 'example'; Code:
$new_domain = 'www.mydomain.com'; change Code:
$new_folder = 'vBulletin/'; Code:
$new_folder = ''; changed the user, password and database variables to my particular values. Inside Code:
switch ($old_system) Code:
$old_thread_script = "viewtopic{$old_ext_type}?t="; Code:
$old_thread_script = "viewtopic{$old_ext_type}?f="; inside Code:
// It's for the old forum Code:
$old_id = intval(substr(substr($_SERVER['REQUEST_URI'], 2), 0, strpos(substr($_SERVER['REQUEST_URI'], 2), '&'))); replace that line with: Code:
$topic_loc = strpos($_SERVER['REQUEST_URI'],"&t="); That's it. I uploaded that to the root of my account, and made a .htaccess file with this line in it: Code:
ErrorDocument 404 /404.php Code:
<?PHP |
I couldnt get the topic redirection right, only for members.
the example old link in google always in this format: www.siasat.pk/forum/viewtopic.php?f=34&t=12541 I am using basic friendly urls, this is new vb4 features. the url generated by it something like this. notice there is only topic number. http://www.siasat.pk/forum/showthrea...ing-Blackwater. any help Pitro would be great. |
Quote:
|
Thanks!!
I've upgrade a phpBB 3.0.7 forum to vBulletin 4.0.6 PL1 successfully. Redirects working fine!!! |
Quote:
I've upgraded from phpBB but it was with SEO Mod to vBulletin. Now struggling to understand what I am supposed to do. |
Does this work with several types of old forums at once, or are you limited to using one at a time?
|
No updates for SMF ?
I appreciate the work. But including only a few boards is not good enough. Regards |
Quote:
|
OK I'm in a bit of a panic. I just switched from phpBB3 to vBulletin and all my Google links have totally screwed up. This have resulted in traffic I've carefully built up for 2 years going off the edge of a cliff. I had no idea that this would happen!!!
Here's an example of a link that comes up in google to my old phpBB board. PHP Code:
PHP Code:
Can anyone explain to me a step-by-step guide how to solve my problem. And please explain it to me like I'm 2 years old because I'm not joking - I really don't have a clue what to do and where to start. I would really appreciate some help. I really need to get this fixed fast so my Google ranking doesn't get destroyed. |
All times are GMT. The time now is 05:50 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|