Experts Exchange connects you with the people and services you need so you can get back to work.
Submit
Improve company productivity with a Business Account.Sign Up
Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.
Have a better answer? Share it in a comment.
Please enter a first name
Please enter a last name
We will never share this with anyone. Privacy Policy
Must be at least 4 characters long.
Join and Comment
By clicking you are agreeing to Experts Exchange's Terms of Use.
Be seen. Boost your question’s priority for more expert views and faster solutions
if($_SERVER["HTTPS"] != "on") {
$newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"];
setcookie("cookie name", "cookie value", time() + (86400*365));
header("Location: $newurl");
}
?>