I reread my original email, and think I was pretty clear that I wanted to do
http://host.domain.local/path/to/app
from the intranet and
https://host.domain.com/path/to/app
from the Internet. /path/to/app is an external application, and not mediawiki, but the link had to be on mediawiki pages. Sorry if my wording was confusing.
I'm glad you were able to discover another solution through our exchange however. I'll put this in the toolbox for future reference when we get to the level of using Templates. Right now, we are working on customizing the navigation menu.
George B. Stevens
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of Jan Steinman Sent: Sunday, March 13, 2005 2:53 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Trying to remove hostname from URLs
Perhaps I misunderstand, but in your original message, you wanted to access:
http://host.domain.local/path/to/app
from a wiki running on
I don't see how {{SERVER}} lets you do this. It resolves to the basename portion of the wiki URL, not to some arbitrary name.
Or was that just a typo?
But that DOES suggest a fully general approach using identical syntax: Templates!
I defined "Template:URL_Bytesmiths" as "http://www.Bytesmiths.com" and now I can embed
[{{URL_Bytesmiths]/Van Veggie Van Gogh]
On 13 Mar 2005, at 11:56, George Stevens wrote:
Typo update: {{SERVER}} not {{Server}}
George B. Stevens Guidelight Business Solutions http://www.GuidelightSolutions.com/ Cell: 512-698-5558 Office: 512-401-6144
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of George Stevens Sent: Sunday, March 13, 2005 1:49 PM To: MediaWiki announcements and site admin list Subject: RE: [Mediawiki-l] Trying to remove hostname from URLs
Isn't it always the way these things work out? We found the solution soon after posting, and it's a nice clean and simple one too:
[{{Server}}/path/to/app | Application Name]
There are _page_environment_variables_ available to wiki pages. Here is a link to the variables page:
http://meta.wikimedia.org/wiki/Help:Variable
I think we missed it the several times we tried getting information because we were looking for 'environment' or 'page environment' and
the
TOC in the manual just has 'Variable' as the section name, which seems meaningless. A better name would be something like "Page Environment Variables".
Thanks to David and Jan for the replies.
George
-----Original Message----- From: mediawiki-l-bounces@Wikimedia.org [mailto:mediawiki-l-bounces@Wikimedia.org] On Behalf Of David Greaves Sent: Sunday, March 13, 2005 1:35 PM To: MediaWiki announcements and site admin list Subject: Re: [Mediawiki-l] Trying to remove hostname from URLs
George Stevens wrote:
{Newbie to the list, so please forgive if this has been answered many times before. We have been unable to track down a solution.}
Actually you have :) And I'm afraid this is it.
We have looked at using rewrite rules and other methods, but they all seem to be a sledgehammer solution.
See: http://meta.wikimedia.org/wiki/Rewrite_Rules
There's a lot of complex MW/PHP/Apache interaction so it's the only answer I can think of.
David PS new here myself so please correct me if I'm wrong.
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l
:::: They that can give up essential liberty to obtain a little temporary safety deserve neither liberty nor safety. -- Benjamin Franklin :::: Jan Steinman http://www.Bytesmiths.com/Item/01FAB33
_______________________________________________ MediaWiki-l mailing list MediaWiki-l@Wikimedia.org http://mail.wikipedia.org/mailman/listinfo/mediawiki-l