{Newbie to the list, so please forgive if this has been answered many times before. We have been unable to track down a solution.}
We installed mediawiki several months ago and it's become a tool we use every day. We have encountered a challenge with links that would seem common enough to have already been solved by someone but we cannot find a solution anywhere. Specifically, our installation is on our intranet and we have added links to other internal web applications that we use daily. These links are of the form
http://host.domain.local/path/to/app
We would like to add access to our installation of mediawiki from the Internet, just like we already have for our other web applications. All of the links on pages when viewed from the Internet are of the form:
https://host.domain.com/path/to/app
We have looked at using rewrite rules and other methods, but they all seem to be a sledgehammer solution. What we would prefer is something simple like:
[/path/to/app | Application Name]
This would seem the obvious solution (at least to us), but unfortunately it does not work. We have also tried to force an anchor into the page like this:
<nowiki><a href="/path/to/app">Application Name</a></nowiki>
But the page parser strips it out.
Finally, we have looked at the interwiki linking mechanism, but it appears to be a one-way mapping of a name to a specific site, which would not work for what we are trying to accomplish.
If we have overlooked the obvious or if anyone has solved this dilemma, we would appreciate some pointers.
Many thanks,
George
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.
I'm successfully using Alias instead of Rewrite. Seems to work fine. I tried Rewrite and did some timings, and went with Alias because it was a bit faster.
On 13 Mar 2005, at 11:35, David Greaves wrote:
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
:::: What we watch, we change. Attending mostly to the dramatic, we neglect the slow. Monitoring flawed gauges such as stock prices, consumer confidence, and gross domestic product, we organize our institutions to generate high stock prices, confident consumers, and the grossest domestic product we can muster. Conversely, because we do not watch them, we do not get the healthiest lives, the strongest communities, or the most vibrant ecosystems. -- Cascadia Scorecard 2004, Northwest Environmental Watch :::: Jan Steinman http://www.Bytesmiths.com/Van
Quoting Jan Steinman, from the post of Sun, 13 Mar:
I'm successfully using Alias instead of Rewrite. Seems to work fine. I tried Rewrite and did some timings, and went with Alias because it was a bit faster.
my server could be a lot less heavily used so I could not see a major difference in speed like Jan, but it is true that rewrite rules uses a slightly heavier and slower module than the basic alias directives.
one problem with it though, it's only good for wiki under a directory as far as I could tell (/wiki/Page URL instead of plain /Page) unless I missed some important trick.
mediawiki-l@lists.wikimedia.org