All,
My site is set up for SSL and I have links to go to the https://www.mysite.com/order.php portion. This does not prevent a user from accessing /order.php without being having SSL enabled. I've searched, but to no avail on this topic, but does anybody know if there is a way to ensure that the page gets viewed in SSL?
Thanks,
Chas688
Ensuring SSL
Moderator: General Moderators
Would this work?
how does this look?
Thanks -
Thanks -
Code: Select all
<?
session_start();
if (!isset($_SERVER['HTTPS'])
{
header("Location: https://www.mysite.com/testsite/order2.php");
exit;
}
?>Tried it
Strange -
I was missing a ")" at the end of the conditional, but once I fixed that, it actually works somewhat. I get a secure symbol in the bottom of the browser, but it does not update the address bar with https://
Is that normal?
Thanks,
Chas
I was missing a ")" at the end of the conditional, but once I fixed that, it actually works somewhat. I get a secure symbol in the bottom of the browser, but it does not update the address bar with https://
Is that normal?
Thanks,
Chas
Works fine
I cleared my cache in the browser and it works just fine now.
Thanks for the nifty tip.
Chas
Thanks for the nifty tip.
Chas