NYCPHP Meetup

NYPHP.org

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

Michael B Allen ioplex at gmail.com
Mon Aug 11 02:18:53 EDT 2008


On Sun, Aug 10, 2008 at 11:31 PM, John Campbell <jcampbell1 at gmail.com> wrote:
> 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?

As of right now, yes I'm relying entirely with the redirecting code I
posted earlier.

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

Understood.

Thanks,
Mike

-- 
Michael B Allen
PHP Active Directory SPNEGO SSO
http://www.ioplex.com/



More information about the talk mailing list