in apache2 error logs, I can see this error constantly appearing:
Code: Select all
Undefined variable: requireSSL in /var/www/html/index.php on line 50
Code: Select all
// If page requires SSL, and we're not in SSL mode,
// redirect to the SSL version of the page
if($requireSSL && $_SERVER['SERVER_PORT'] != 443) {
header("HTTP/1.1 301 Moved Permanently");
header("Location: https://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']);
exit();
}
Also, my site takes well over 2-3 minutes to load on my machine! Bonkers!