load('index'); $MxpLanguage->set(isset($_GET['language']) && !empty($_GET['language']) ? $_GET['language'] : null); $concat = (mxp_get_all_get_params(array('language')) == '') ? '' : '&'; $_session_id = ''; if ($MxpSession->hasStarted() && !mxp_empty(SID)) { $_session_id = '&sid='.$MxpSession->getID(); } $all_parameters = mxp_get_all_get_params(array('language')); $correct_page = mxp_href_link(mxp_get_page_language($MxpLanguage->getCode()), $all_parameters.$concat.$_session_id, 'AUTO', false); // Permanent redirection header("HTTP/1.1 301 Moved Permanently"); header("Location: ".$correct_page); exit(); ?>