For the redirect, you can add them right before :
- Code: Select all
trigger_error('NO_TOPIC');
in viewtopic.php and :
- Code: Select all
trigger_error('NO_FORUM');
in viewforum.php.
To redirect index.php to domain's root, you can add something like :
- Code: Select all
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If (empty($_GET) && strpos($uri, "index.$phpEx")) {
header("Status: 301 Moved Permanently", FALSE, 301);
header("Location: http://www.example.com/phpBB/");
exit();
}
// www.phpBB-SEO.com SEO TOOLKIT END
in the beginning of index.php and with the proper url for your domain
++