Hi People,
I am working with the auto convert from http: to https: cookbook script:
$ScriptUrl = str_replace('http:','https:',$ScriptUrl,1);
$PubDirUrl = str_replace('http:','https:',$PubDirUrl,1);
if ($_SERVER['SERVER_PORT'] != 443) {
if ([EMAIL PROTECTED]) { header("Location: $ScriptUrl");
On Mon, Jan 22, 2007 at 04:58:00PM +, Clive Shane Hetherington wrote:
>
> Hi People,
>
> I am working with the auto convert from http: to https: cookbook script:
>
> $ScriptUrl = str_replace('http:','https:',$ScriptUrl,1);
> $PubDirUrl = str_replace('http:','https:',$PubDirUrl,1);
> if ($_SE
On Mon, 22 Jan 2007, Patrick R. Michaud wrote:
Note that PmWiki version 2.2.0-beta18 and later automatically detect
https: and use it accordingly. So, with 2.2.0 you can do:
if ($UrlScheme != 'https:') {
$ScriptUrl = str_replace($UrlScheme, 'https:', $ScriptUrl);
if ([EMAIL PROTE
On Tue, Jan 23, 2007 at 07:41:49PM +0100, [EMAIL PROTECTED] wrote:
> On Mon, 22 Jan 2007, Patrick R. Michaud wrote:
>
> >Note that PmWiki version 2.2.0-beta18 and later automatically detect
> >https: and use it accordingly. So, with 2.2.0 you can do:
> >
> > if ($UrlScheme != 'https:') {
> >