This is how I do it:
if ($_SERVER['HTTPS']!='on') {
header(Location: https://mynet.com/pay.php;);
exit;
}
It is my ambition to say in ten sentences; what others say in a whole
book. - Friedrich Nietzsche
From: [EMAIL PROTECTED]
Date: Fri, 1 Aug 2003 10:20:58 +0200
To: [EMAIL PROTECTED]
It might also be worth making sure that your web server is configured to force
https on this page if this is what you want. Otherwise a user could type the
URL in without the HTTPS and still get the page.
On Friday 01 Aug 2003 9:20 am, [EMAIL PROTECTED] wrote:
I have a stupid question.
I
, August 01, 2003 3:25 AM
To: PHP General
Subject: Re: [PHP] Redirect to HTTPS
This is how I do it:
if ($_SERVER['HTTPS']!='on') {
header(Location: https://mynet.com/pay.php;);
exit;
}
It is my ambition to say in ten sentences; what others say in a whole
book. - Friedrich Nietzsche
From
3 matches
Mail list logo