This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]

I'm using v1.8.2 on Red Hat Linux 8.0 (Tomcat connected to Apache with a JK2 connector)

Is there any way I can create HTTP links that resolve to the same server without hard-coding the servers IP address or fully qualified name?

If my server is named "" and (via JK2) "" is my JSP wiki site. Now this server is also running Bugzilla at "" and Mailman at "". So I want to create links from the JSP wiki site to these I use:

Go to [Bugzilla|] \\
Go to [Mailman|]

The problem (as I see it) is that the server name is hard coded and won't float with the Wiki installation. I'd really like to use relative links or a variable that includes the server name. Thoughts/ideas? Have I missed a rather obvious way to do this? Tim Halloran

Hmmm, After a bit more investigation there are actually two legal relative references:

<a href="/myfile.html">The type I talked about above</a>
<a href="//">protocol relative</a>

The first is what I'm after, the second allows a link to "carry" the type of connection (secure or unsecure) through the link. Tim Halloran

You can use InterWiki links to do that. If you include in your
Writing [Bugzilla|bugzilla:test.html] creates <a href="/bugs/test.html">...,
using [Bugzilla|bugzilla2:test.html] will create the link <a href="">....

See also InterWikiLinkTips.

-- Torsten

I had a similar problem, I want to put images that are on the site into the pages without using the full URL. I also had the added problem of wanting to be able to do parameters for the image. My solution was to build a Wiki Plugin (IMG) to support the image. A plugin is easy to write, it may be a way to solve your problem.

Good luck,


Category Tips, Category Documentation

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 28-Jun-2005 23:27 by KarlHansen.