@ntozier The issue was not actually a web config issue, it was in the code. When the board was switched offline, and I try to sign in as an agent, it gives me the redirect error. I was debugging and found that it happened in staff.inc.php
on line 92:
//2) if not super admin..check system status and group status
if(!$thisstaff->isAdmin()) {
//Check for disabled staff or group!
if (!$thisstaff->isActive()) {
staffLoginPage(__('Access Denied. Contact Admin'));
exit;
}
//Staff are not allowed to login in offline mode!!
if(!$ost->isSystemOnline() || $ost->isUpgradePending()) {
staffLoginPage(__('System Offline')); // <-------------------- this line here
exit;
}
}
which calls this function:
function staffLoginPage($msg) {
global $ost, $cfg;
$_SESSION['_staff']['auth']['dest'] =
'/' . ltrim($_SERVER['REQUEST_URI'], '/');
$_SESSION['_staff']['auth']['msg']=$msg;
// Redirect here with full path for application-type plugins
Http::redirect(ROOT_PATH.'scp/login.php'); // <---------- redirects back to login
exit;
}
which redirects back to scp/login, but does not clear the session, so from login.php, the program will get back to this line of code again - causing the infinite loop of redirects.
Let me know if I should create a ticket for this on github.