Forum Moderators: phranque
ok now i tried to go from the https to http using Header function in php but didnt work so doing some further research i found .htaccess might be helpful
So is there any way to achieve this doing changes in the .htaccess?
You have a form on a non secure site that submits its data to a secure site.
Once your script gets the data from the script you want to redirect the user back to the non secure site.
Does your script print any output to the browser or are you simply redirecting via a relative link like:
header("Location: page.php");
a full link like:
header("Location: http://domain.dom/page.php");
or have I totally misunderstood?
EDITED DUE TO TYPO
so h2tp://www.mysite.com/login.php goes to
h2tps://ssl.site.com/mysite.com/validate.php and then this should go to
h2tp://www.mysite.com/page.php
Now as u have mentioned i have used header functions in the two ways that u said and even in the more general way as found in the php site but what happens is that it remains in the https
so instead of getting
h2tp://www.mysite.com/page.php
i get h2tps://ssl.site.com/mysite.com/page.php
On the final page can you right click and select properties then copy and paste the full URL in a sticky to me.
I have a feeling that the URL that is in the address bar is different to the real URL (that doing the above will reveal)
Also if I am wrong I can have a better look at it :D