I am trying to work my way through errors that appear in logs.
I have the following code checking to see if SSL is turned on, but get this error in my error log:
Undefined index: HTTPS in /var/www/vhosts/xxx.org/ht
on line 10
(I've indicated line 10)
Is my syntax incorrect?
// BRING IN COMMON CODE
line 10:if (strtolower($_SERVER['HTTPS']) != 'on')
header("Location: https://" . $_SERVER['SERVER_NAME'] . $_SERVER['PHP_SELF']);