Hi,
I've used the following code to force user to use https protocol
if($_SERVER['SERVER_PORT'] != "443") {
$newURL = "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_URL'];
header("location: $newURL");
exit;
It works fine in Firefox , mozilla and Opera . But in IE security warning pop up in every single page .This is very annoying. I get this message "Your are visiting a secure page and this contains unsecure infomation, do you want to continue".
It should ask only one but instead its asking every single link of the site.
Does anyone knows how to pix this problem.