localwiki/sapling — Issue #28: DavisWiki/RocWiki legacy URL lookups
Author: philipn
Created: 2011-11-24 09:54:10+00:00
State: open

Two parts:

1.

Write Middleware to deal with this.

For _just_ daviswiki and rocwiki. Not relevant for *anything* else, even wikispot.org sites.

Do something like:

{{{
might_be_pagename = urllib.unquote(page_url.replace('_', '%'))
if Page.objects.filter(slug=our_slugify(might_be_pagename)):
< redirect "moved permanently" to the page's canonical url >
}}}

this should work on, like, /Rob_20Roy

2.

In Apache (or whatever), route /index.cgi/ -> /