NYCPHP Meetup

NYPHP.org

[nycphp-talk] Switching Forth and Back Between HTTP and HTTPS

John Campbell jcampbell1 at gmail.com
Sun Aug 10 23:31:16 EDT 2008


On 8/10/08, Michael B Allen <ioplex at gmail.com> wrote:
>
> True. But POST-ing while also transitioning between HTTP and HTTPS is
>  not terribly common.

There are cases when you want this...  imagine an "express buy"
button.  It would post the item data to an https page.  You are right
that it isn't terribly common.

Just out of curiosity, is this going to be your primary method to set
http vs https, or is this just a fallback in case there is a bad link
somewhere?

>  > I would also use a 301 redirect in this case.
>
> Why is that exactly? I think I agree with you, but I just want to make
>  sure I know why 301 would be better.
>

The short answer is, 301 passes google page rank, 302 does not.

-John C



More information about the talk mailing list