Forum Moderators: coopster
i have a form that gets executed in an SSL environment so
h2tp://www.mysite.net/form.php goes to
h2tps://ssl.site.net/mysite.net/validate.php now i want to go back to use http so want to get
h2tp://www.mysite.net/index.php
But what happens is that it still remains in the HTTPS mode i've tried the following code
header("Location: h2tp://" . $_SERVE['HTTP_HOST']
. dirname($_SERVER['PHP_SELF'])
. "/" . "somepage.php");
have also tried
header ("Location: somepage.php");
But they all return it like
h2tps://ssl.site.net/mysite.net/somepage.php
instead of
h2tp://mysite.net/somepage.php
Any thoughts?
Just add this code to your index page :)