Alain Roger wrote:
but i do not know if it's enough.
Sorry it doesn't use PHP, but this is what I do if the client wants an
entire site to always use SSL. In the web server config for the non-ssl
site, put a permanent redirection to the SSL site. For Apache I use the
following vhost...
Alain Roger wrote:
> Richard,
>
> as i wrote you before, i've gotthe following suggestion to implement before
> to run the rest of my PHP code.
>
> if($_SERVER['HTTPS']!='on')
> {
> header('location:https://www.mysite.com');
> exit;
> }
> ...
>
> but i do not know if it's enough.
it is enough -
Richard,
as i wrote you before, i've gotthe following suggestion to implement before
to run the rest of my PHP code.
if($_SERVER['HTTPS']!='on')
{
header('location:https://www.mysite.com');
exit;
}
...
but i do not know if it's enough.
Alain
On 12/2/06, Richard Lynch <[EMAIL PROTECTED]> wrot
On Sat, December 2, 2006 2:17 am, Alain Roger wrote:
> I would like to know how can i be sure to make customer use the SSL
> all the
> time.
> all the time in my PHP code, i write links as relative links, so
> without
> HTTPS.
>
> I was thinking to check everything if the port is the SSL port
> (de
my solution:
if($_SERVER["HTTPS"] != 'on')
{
header ('location: https://www.your_domain_here.com');
exit;
}
-afan
> Hi,
>
> I would like to know how can i be sure to make customer use the SSL all
> the
> time.
> all the time in my PHP code, i write links as relative links, so without
> HTTPS
5 matches
Mail list logo