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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.