PHP HTTPS to HTTP redirect
Hi, a while back you guys gave me a redirect to cause checkout pages to go to https. Now on one of our sites we're having issues after users go to the product pages (where they are redirected to https) and then leave to go back to the rest of the site. The rest of the site has google ads which use js files from an unsecure site so a pop up comes up in IE asking if they only want to few content that was delivered securely. There's no way to change the ads, I've looked for a solution. Is there a redirect that will take the page from https and go back to http? Here's the redirect I was given to go to https.
<?php if((!(isset($_SERVER['HTTPS']))) || ($_SERVER['HTTPS'] == "") || ($_SERVER['HTTPS'] == "off"))header("Location: https://" . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']); ?>