http://www.phpbb-seo.com/index.php
++
Moderator: Moderators

dcz wrote:You could both try to hard code PHPBB_URL in the seo_redirect(PHPBB_URL); call :
- Code: Select all
seo_redirect("http://www.example.com/phpBB/");
Just in case



<?php
/***************************************************************************
* index.php
* -------------------
* begin : Saturday, Feb 13, 2001
* copyright : (C) 2001 The phpBB Group
* email : support@phpbb.com
*
* $Id: index.php,v 1.99.2.7 2006/01/28 11:13:39 acydburn Exp $
*
*
***************************************************************************/
/***************************************************************************
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
***************************************************************************/
define('IN_PHPBB', true);
$phpbb_root_path = './';
include($phpbb_root_path . 'extension.inc');
include($phpbb_root_path . 'common.'.$phpEx);
//
// Start session management
//
$userdata = session_pagestart($user_ip, PAGE_INDEX);
init_userprefs($userdata);
//
// End session management
//
$viewcat = ( !empty($HTTP_GET_VARS[POST_CAT_URL]) ) ? $HTTP_GET_VARS[POST_CAT_URL] : -1;
if( isset($HTTP_GET_VARS['mark']) || isset($HTTP_POST_VARS['mark']) )
{
$mark_read = ( isset($HTTP_POST_VARS['mark']) ) ? $HTTP_POST_VARS['mark'] : $HTTP_GET_VARS['mark'];
}
else
{
$mark_read = '';
}
// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If ($mark_read == '' && $viewcat == -1 && strpos($uri, "index.$phpEx")) {
seo_redirect(PHPBB_URL);
}
// www.phpBB-SEO.com SEO TOOLKIT END


header("Status: 301 Moved Permanently", FALSE, 301); 

dcz wrote:Oups, noticed a typo, missing "Status:" in the header lol.
- Code: Select all
header("Status: 301 Moved Permanently", FALSE, 301);
So post fixed
++

'U_INDEX' => append_sid('/'), 'U_INDEX' => append_sid('http://www.example.com/phpBB/'), 

define('PHPBB_URL', 'http://www.example.com/phpBB/');'U_INDEX' => append_sid(PHPBB_URL),'U_INDEX' => append_sid(),
'U_INDEX' => append_sid(PHPBB_URL),

// www.phpBB-SEO.com SEO TOOLKIT BEGIN
$uri = $_SERVER['REQUEST_URI'];
If ($mark_read == '' && $viewcat == -1 && 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
Users browsing this forum: No registered users and 2 guests