Well, with a 2go db, you must take some precaution to make sure that everything work perfectly upon the first try, would be a real pain to have to restore it

The good news is that there is no reason why it would not work pretty easily, and that it's rather easy to secure the transition.
But I strongly encourage you to set up a mirror install on a local / test server, not necessarily with all the db imported, but with at least all your online files in use.
Once the code would be working as you wish offline, you should first upload all tested files in a temporary directory, and connect it to the online db (editing config.php).
This way, you'd be able to make sure that everything works as expected on the real server before you shut down the old one. You could, once everything is ok, rename the old forum/ dir to something else and then the temporary one to forum/. This would make it possible to go back to the old forum in no time in case you have trouble.
Note that during all the steps I mentioned, your online DB and forum files would not be touched at all, it's hard to be safer.
Anyway, here the steps for this scenarion :
- Set up a local test install of the premod, using a new db (temporary), place it in a sub dir, will be easier for later (localhost/testdir/).
- Merge / install any mod, image or theme that you'd have installed on your forum in the premod's code and make sure they work as expected
- Think about the url structure you'd want, do not hesitate to try many different settings, it's the time to do it, the idea is to end up with a final choice for the url that you'll be using online;
- Generate an .htaccess meant to be used in testdir/, using the "more options" option of the .htaccess generator and then the "alternate location one",
- Once all SEO options are set and running, it's time to try to connect the premod to your db. You can do it online as I told you, but you'll have to do a small trick to have the premod connected from another dir than the one configured in the db. In phpbb_seo/phpbb_seo_class.php, add :
- Code: Select all
$script_path = "/tempdirname";
after :
- Code: Select all
$script_path = trim($config['script_path'], '/');
With this, the premod will be able to run in tempdirname/ while the config tells it to run in forum/. From there, everything should work directly except the .htaccess. You'll have to replace :
- Code: Select all
RewriteBase /testdir/
with :
- Code: Select all
RewriteBase /tempdirname/
But remember, we did not touch the db yet, so you won't have access to the phpBB SEO acp module. But the settings made locally will still be used, since they are stored in the phpbb_seo/cache/ dir. - When everything works in the online temp dir, it's time to run phpbb_seo/phpbb_seo_install.php, it will just add the phpBB SEO acp module, nothing more. You'll only be able to access it thourgh tempdirname/ since forum/ does not hold the required files, but it won't crash the online forum, only ACP can be affected.
- Once done, it's time, if not done already, to set up your forum urls in the phpBB SEO forum url management acp. This is as well something you want to do with care, the idea is to make the good choices before you go online, it's better.
- So now you're ready for the big jump !
You'll just have to remove the added code in phpbb_seo_class.php, edit the .htaccess again to replace tempdirname with forum and you'll be ready to rename forum/ to something else and tempdirname/ to forum/.
And everything should work nicely directly.
This of course assumes that your phpBB install was up to date and using the same version of phpBB (currently 3.0.4) than our premod. So in your case, it means that it would be a lot safer to first update phpBB, but you can imagine to skip the file edit part and just update the db using install/database_update.php, but this means that you won't be able to have both the old and new script running on the same db on the online server, so it's less safe, especially if you did not trained yourself locally with the actual db.
If you are confident with .patch usage, you can grabb the phpBB .patch package, it includes a phpBB-3.0.0_to_3.0.4.patch to make it easier for your update. Otherwise you'll have to update through each version.
An alternative would be to massively merge your phpBB3.0.0 with the vanilla phpBB3.0.4 one and then run install/database_update.php. Again, it would be safer to do this offline at first, and then, once everything was validated, upload all files online and run install/database_update.php online. And then go for the above step one.
When you'll have migrated this way, you should, if you want to use the no duplicate, run the no dupe query on the online db. It's just adding an index on the topic table :
- Code: Select all
ALTER TABLE `phpbb_topics` ADD INDEX `topic_lpid` ( `topic_last_post_id` )
For a faster display (a lot, especially with 2go) of topic links on index.
That would be the most important change made by the premod to the db.
Starting from 3.0.5, this index should be added automatically in acp when activating the no duplicate.Now SEO wise, since you'd be in the case where you forum previously existed without url rewriting, you'll need to wait at least two month (even more with such a big db) before you implement the robots.txt, and make sure you activate the zero duplicate mod, with in most cases post redirection set to at least "guest".
That'd be the only thing to do to properly redirect all the old urls to the new ones. The redirect will be massive in your case, so that's why you want to cautiously set up your url standard, because this is not the type of thing you want to do every other day. It's though working very smoothly and usually occurs without losing SERPs or SE referrals.
You can of course try the full procedure offline with your actual db before you go online, it would not be a bad thing if you do not feel confident with this, but local testing of the premod implementation is already a good training.
You can of course ask for help concerning any of the steps I listed above, the good thing is that support can be provided before you run into trouble with your online board this way.
As you see, you'll have some work, especially since you did not update phpBB, but it's more a matter of patience than difficult, and yes, IMHO worth it.
++
[EDIT] Updated the no dupe index for 3.0.5, nothing to do for user who have applied this before.