Assuming that phpBB will stay in the same location when converted (eg in the same domain and script path), then you'll just have to keep these rewriterules (whatever the url standard you will chose in the end) :
- Code: Select all
# PHPBB2 REDIRECT
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-vc[0-9]+\.html$ /index.php [QSA,L,NC]
# FORUM
RewriteRule ^[a-z0-9_-]*-vf([0-9]+)(-([0-9]+))?\.html$ /viewforum.php?f=$1&start=$3 [QSA,L,NC]
# TOPIC
RewriteRule ^[a-z0-9_-]*-vt([0-9]+)(-([0-9]+))?\.html$ /viewtopic.php?t=$1&start=$3 [QSA,L,NC]
# PROFILES
RewriteRule ^profile.php$ /memberlist.php [QSA,L,NC]
# END PHPBB2 REDIRECT
In your phpBB3 .htaccess, either after :
- Code: Select all
# HERE IS A GOOD PLACE TO ADD OTHER PHPBB RELATED REWRITERULES
if you do not use virtual folders, or just at the very end of it in case you do.
In case you would take this occasion to change your user profile urls, you would need to add this one too :
- Code: Select all
# PHPBB2 PROFILES
RewriteRule ^member([0-9]+)\.html$ /memberlist.php?mode=viewprofile&u=$1 [QSA,L,NC]
For rss feeds, you would just need to activate the GYM1.x redirect option before you generate your phpBB3 .htaccess to get the proper rewriterules added automatically.
If you would like to redirect phpBB2 categories to the exact forum they got converted into (the above would redirect all of them to the forum index), you would need to use :
- Code: Select all
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-vc([0-9]+)\.html$ /cat_redir.php?c=$1 [QSA,L,NC]
Instead of :
- Code: Select all
# CATEGORIES
RewriteRule ^[a-z0-9_-]*-vc[0-9]+\.html$ /index.php [QSA,L,NC]
And then create a cat_redir.php file with this in it :
- Code: Select all
<?php
/**
*
* @package phpBB SEO Toolkit
* @version $Id: rss.php,v 1.0 2006/12/09 13:48:48 dcz Exp $
* @copyright (c) 2006 dcz - www.phpbb-seo.com
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*
*/
$phpbb_root_path = './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
// Grabb necessary vars
// cat (forums) rss map
$cat = isset($_GET['c']) ? max(0, (int) $_GET['c']) : 0;
$cattoforum = array(2 => 64, 3 => 65, 6 => 66, 4 => 67, 5 => 68 );
if (isset($cattoforum[$cat])) {
// Workarround for the zero dupe
$_SERVER['PHP_SELF'] = 'viewforum.'.$phpEx;
$_REQUEST['f'] = (int) $cattoforum[$cat];
include($phpbb_root_path . 'viewforum.'.$phpEx);
} else {
// Workarround for the zero dupe
$_SERVER['PHP_SELF'] = 'index.'.$phpEx;
include($phpbb_root_path . 'index.'.$phpEx);
}
exit;
?>
You would just need to properly set up the old_phpbb2_cat_id to new_phpbb3_forum_id array :
- Code: Select all
$cattoforum = array(2 => 64, 3 => 65, 6 => 66, 4 => 67, 5 => 68 );
in that file.
These are the phpBB SEO values in use :
phpBB SEO Portal
++