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

Re: Porting attachment URLs

From: Alan Ruttenberg <alanruttenberg@gmail.com>
Date: Fri, 19 Oct 2007 09:37:45 -0400
Message-Id: <F7E82069-87E8-4B9C-ACC6-6173FE4787C8@gmail.com>
Cc: <public-wiki-dev@w3.org>
To: "Rotan Hanrahan" <rotan.hanrahan@mobileaware.com>

Redirect would be best, IMO. Can you not do the redirect in the  
apache server or within a .htaccess?
-Alan

On Oct 19, 2007, at 8:47 AM, Rotan Hanrahan wrote:

> 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:
>
> <wikipath>/PageName?action=AttachFile&do=get&target=attachment.ext
>
>
> 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:
>
> <Wikipath>/PageName/Attachments/attachment.ext
>
>
> 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?
>
> ---Rotan.
>
Received on Friday, 19 October 2007 13:37:58 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 8 January 2008 14:19:17 GMT