11-07-2017, 01:22 PM
You can just drop the same code snippet we use in your login.php or (preferably) copy your login.php over to usersc/login.php, point the init to ../users/init.php and add this snippet somewhere near the top...
Code:
if (!isset($_SERVER['HTTPS']) || !$_SERVER['HTTPS']) {Code:
$url = 'https://'.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];Code:
Redirect::to($url);Code:
exit;Code:
}
