Https
Hope someone can guide me on this, much appreciated. And apologise for naming conventions I may use, as I am one of those who sadly works alone :)
I have an application form that when accessed from anywhere within the website the code below always makes sure that when the application page loads it is always under HTTPS
to go to an SSL secured page.
<?php
if ($_SERVER['HTTPS']!= 'on') {
// Redirect user to secure page
header("Location: https://www.domainname.co.uk/application.php");
exit;
}
?>
I want to be able if I click a link on the application page that it defers back to HTTP
I would suspect someone knows the answer to this.
Many thanks