Re: redirect if https is set - code so far



"Craig Keightley" <dont@xxxxxxx> wrote in
news:4264cc3e$0$303$cc9e4d1f@xxxxxxxxxxxxxxxxxxxxxxxx:

> i have the following script on my checkout page to check if https is
> set in the address bar:
>
> if ($_SERVER['HTTPS'] != "on")


if (getenv('HTTPS') != 'on')

tends to work better I've found, so the opposite would be

if (getenv('HTTPS') == 'on')
.