Index: branches/5.2.x/core/kernel/application.php =================================================================== diff -u -N -r14934 -r14945 --- branches/5.2.x/core/kernel/application.php (.../application.php) (revision 14934) +++ branches/5.2.x/core/kernel/application.php (.../application.php) (revision 14945) @@ -1,6 +1,6 @@ isAdmin ? '' : '?next_template=' . urlencode($_SERVER['REQUEST_URI']); // get next_template from query string if needed - if ( file_exists(FULL_PATH . $maintenance_page) ) { - header('Location: ' . BASE_PATH . $maintenance_page, true, 301); - exit; - } + if ( file_exists(FULL_PATH . $maintenance_page) ) { + header('Location: ' . BASE_PATH . $maintenance_page); + exit; + } } /** @@ -955,7 +956,6 @@ $maintenance_template = $this->isAdmin ? 'login' : $this->ConfigValue('SoftMaintenanceTemplate'); if ( $this->GetVar('t') != $maintenance_template ) { - $redirect_params = Array ('response_code' => 301); if (!$this->isAdmin) { $redirect_params['next_template'] = urlencode($_SERVER['REQUEST_URI']);