W3C home > Mailing lists > Public > public-wiki-dev@w3.org > October to December 2007

Porting attachment URLs

From: Rotan Hanrahan <rotan.hanrahan@mobileaware.com>
Date: Fri, 19 Oct 2007 13:47:47 +0100
Message-ID: <D5306DC72D165F488F56A9E43F2045D301531D6B@FTO.mobileaware.com>
To: <public-wiki-dev@w3.org>
I am porting from a moinmoin tarball of the data directory to a live
MediaWiki installation. I am trying to preserve the URLs despite the
intended switch in the wiki engine. Maintaining the page URLs seems easy
enough (except perhaps for some using non-ASCII characters in the name).
However, I notice that moinmoin attachments have URLs of the form:


In this case there is no obvious way for me to preserve this URL when
the attachment is moved to a MediaWiki server. I propose therefore to
map all such URLs to the following MediaWiki-friendly form:


and include in the MediaWiki's 404 response page a message to explain
the mapping, in case anyone is looking for the URL to the attachment. In
theory I could automate this response so that an appropriate redirect is
executed, but right now I'm not keen to manipulate the MediaWiki code.

Does anyone have any comment on this strategy?

Received on Friday, 19 October 2007 12:48:02 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 19:40:57 UTC