[Pmwiki-users] https

Patrick R. Michaud pmichaud
Thu Oct 9 14:02:41 CDT 2003


On Thu, Oct 09, 2003 at 08:58:10PM +0200, D. Deuter wrote:
> 
> htaccess-passwords are transferred plaintext through Internet.
> So I tried to access my Wiki-Page via https - but it seems as
> if the http-header was hardcoded into pmWiki! Why doesn't
> pmWiki just refer to other pages relatively (which would also
> make it easier to access non-Wiki-pages in the site)??

...because relative pages don't work if the page name is encoded into
the URL path.  For example, given a url of
    http://www.pmichaud.com/wiki/Main/HomePage

The relative url to the PmWiki.PmWiki page would have to be 
"../PmWiki/PmWiki", which has the potential for all sorts of
problems.  

However, the http: is not really "hardcoded" into PmWiki--you can always 
change it in local.php.  If you want to use https: instead of http:, just add

   $ScriptUrl = 'https://'.$HTTP_SERVER_VARS['HTTP_HOST'];

to local.php and all of the urls will use the https: address instead.

Pm



More information about the pmwiki-users mailing list