zabberwan Posted May 10, 2011 Share Posted May 10, 2011 Hello, Just joined, am new to PHP and require some help. I don't know where to exactly post for help, so please feel free to move it if necessary. I have a website which is also accessible over an SSL or HTTPS. I already have a login/registration installed on it. I would want that new comers register in the HTTPS mode and then after completing the process upon login transfer them to the Home Page in the HTTP mode. In other words: Any user comes to the HTTP site -> is offered to login (will take place in the HTTP mode only) -> if already registered: is sent to the site's HTTP homepage or is a new comer: is directed to HTTPS Registration -> and subsequently on completing the registration process is redirected to the login in the HTTP mode. How is this transition done? Would really appreciate some help finding or identifying some code to get me going in the right direction.. Thank you, zabberwan Link to comment https://forums.phpfreaks.com/topic/236038-http-to-https-and-back/ Share on other sites More sharing options...
gizmola Posted May 12, 2011 Share Posted May 12, 2011 header Use the http location header. Link to comment https://forums.phpfreaks.com/topic/236038-http-to-https-and-back/#findComment-1214306 Share on other sites More sharing options...
zabberwan Posted May 13, 2011 Author Share Posted May 13, 2011 Hi gizmola, Thank you for the pointer! I'm now reading up on it.. zabberwan Link to comment https://forums.phpfreaks.com/topic/236038-http-to-https-and-back/#findComment-1214902 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.