Force the checkout.php page to http instead of https
I does not use any payment gateway, so my site does not make use of a SSL certificate. Nevertheless the checkout page try to access the https protocol.
To force the checkout.php page to use http instead of https, I have tested this 3 code blocks at line 1 one by one for the checkout.php page
<?php if (isset($_SERVER['HTTPS']) && strtolower($_SERVER['HTTPS']) == 'on') header("Location: http://".$_SERVER['HTTP_HOST'].$_SERVER['PHP_SELF']); ?>
<?php if(((isset($_SERVER['HTTPS']))) && ($_SERVER['HTTPS'] != "") || ($_SERVER['HTTPS'] == "on"))header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>
<?php
if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off")) {
header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
die();
}
?>
The checkout.php page is not redirected to http as expected.
Please help.
You can test my site on live URL here: www.totalweb.no
The site is translated to norwegian, but I think you should be able to find the exact buttons.
Regards
Rune