Problem solved. It's provide to the _fUrlComplete function of the ipsRegistry class :
/* www.hostname.com vs hostname.com - need to ensure we are at the correct URL for AJAX purposes */
if( !defined('CCS_GATEWAY_CALLED') && ipsRegistry::$request['request_method'] == 'get' )
{
$_requestedHost = $_SERVER['HTTP_HOST'];
$_configuredHost = parse_url( ipsRegistry::$settings['board_url'], PHP_URL_HOST );
$uri = $_SERVER['REQUEST_URI'] ? $_SERVER['REQUEST_URI'] : @getenv('REQUEST_URI');
$_t = !empty(ipsRegistry::$settings['board_url']) ? @parse_url( ipsRegistry::$settings['board_url'] ) : @parse_url( ipsRegistry::$settings['base_url'] );
$_toTest = ( $_t['path'] AND $_t['path'] != '/' ) ? preg_replace( "#^{$_t['path']}#", '', $uri ) : str_replace( $_t['scheme'] . '://' . $_t['host'], '', $uri );
if( strpos( $_configuredHost, 'www.' ) === 0 AND strpos( $_requestedHost, 'www.' ) !== 0 )
{
ipsRegistry::getClass('output')->silentRedirect( ipsRegistry::$settings['board_url'] . $_toTest );
}
else if( strpos( $_configuredHost, 'www.' ) !== 0 AND strpos( $_requestedHost, 'www.' ) === 0 )
{
ipsRegistry::getClass('output')->silentRedirect( ipsRegistry::$settings['board_url'] . $_toTest );
}
}
Just add define ('CCS_GATEWAY_CALLED', false); in your portal.php.
I have a another problem. portal don't work if I rename admin folder...