When redirecting from cart.php to index.php clicking the "Home" button a 404 error shows up.
I followed this post directions to redirect my https pages to http ones.
I added the following code to the cart page:
<?php if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off"))header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>
And the following to the index page:
<?php if ($_SERVER['SERVER_PORT']==443) header("Location: http://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>
Other links from https to http works fine but this. I checked the source code and the link seems Ok.
cart.php