[pmwiki-users] localmap.txt does not allow relative URIs (Was: host-independent ..

Patrick R. Michaud pmichaud at pobox.com
Wed Mar 16 14:41:07 CST 2005


On Wed, Mar 16, 2005 at 02:32:39PM -0500, Bronwyn Boltwood wrote:
> On Wed, 16 Mar 2005 15:03:14 +0100, chr at home.se <chr at home.se> wrote:
> > Then again.. what should it be relative to? Well, I think
> > it should at least be possible to control that yourself, and I'd probably
> > prefer it to be relative to either 'http://www.somewhere.se' or
> > 'http://www.somewhere.se/wiki'.
> 
> I'd like it to be relative to the site, if I don't put in the http://
> part myself.  That would solve *my* intermap difficulties (because the
> server changes depending on what machine I'm running the wiki from).

localmap.txt doesn't require the http: in front...

    Gallery        /uploads/Gallery/$1

will cause Gallery:somepic.jpg to generate '/uploads/Gallery/somepic.jpg'
as the target url.

Pm



More information about the pmwiki-users mailing list