Jump to content

http to https and back


zabberwan

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.