[pmwiki-users] Getting ssl to work with the http: to https: forcing script?

2007-01-22 Thread Clive Shane Hetherington
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");

Re: [pmwiki-users] Getting ssl to work with the http: to https: forcing script?

2007-01-22 Thread Patrick R. Michaud
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

Re: [pmwiki-users] Getting ssl to work with the http: to https: forcing script?

2007-01-23 Thread christian . ridderstrom
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

Re: [pmwiki-users] Getting ssl to work with the http: to https: forcing script?

2007-01-23 Thread Patrick R. Michaud
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:') { > >