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

christian.ridderstrom at gmail.com christian.ridderstrom at gmail.com
Tue Jan 23 12:41:49 CST 2007


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 (!@$pagename) { header("Location: $ScriptUrl"); exit; }
>      Redirect($pagename);
>    }

Could you explain the purpose of this code?

/Christian

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr


More information about the pmwiki-users mailing list