[pmwiki-users] localmap.txt does not allow relative URIs (Was: host-independent ..
arndis at gmail.com
Thu Mar 17 00:17:00 CST 2005
On Wed, 16 Mar 2005 14:41:07 -0600, Patrick R. Michaud
<pmichaud at pobox.com> wrote:
> On Wed, Mar 16, 2005 at 02:32:39PM -0500, Bronwyn Boltwood wrote:
> > 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.
*test* *jaw drop*
It had never occured to me to try that before, but so far it does
exactly what I want. Chalk up another victory for things I didn't
know I could already do.
It must be making URLs that are relative to the site, as opposed to
the wikipage that I'm on (the way that I thought it would). I'll have
to play with it after transferring recent changes to the production
site, to make sure it works properly there too.
More information about the pmwiki-users