Page 1 of 1

get http or https

Posted: Tue Mar 01, 2005 9:34 pm
by Pyrite
I just setup SSL on my site, and I want some of the pages to use SSL and the rest not. So like, I guess I need a way to tell if the current page is accessed at http or https and then redirect the user to https if they are at http.

Or is there some better way to do this, that I don't know or understand?

Posted: Tue Mar 01, 2005 9:49 pm
by feyd
$_SERVER['HTTPS'] exists when in https mode :)

Posted: Tue Mar 01, 2005 10:13 pm
by Pyrite
simple question, how do i get the full current url in php (including the http part) ?

Posted: Tue Mar 01, 2005 10:20 pm
by feyd