On 30 Jun 2010 12:21:45 -0700, Ted Stern wrote: > > Hi all, > > I currently have a wiki farm located on somehost.someplace.com (for > example), with wikis named like this in farmconfig.py: > > # for multiple wikis, do something like this: > ("examplewiki", r"^somehost.somewhere.com/ExampleWiki.*$"), > > We are going to be moving the wiki host to another computer, and I > have anticipated this by creating a hostname alias on our local > nameserver that points 'mywikis.somewhere.com' to > 'somehost.somewhere.com'. > > However, after I change farmconfig.py to point to the new hostname, > anyone going to the old hostname gets an error message. > > Is there a simple way to put up a redirection page or something that > will send my users to the correct new URL? >
A simple solution for the short term is to play with regular expressions a little: ("examplewiki", r"^(somehost|mywikis).somewhere.com/ExampleWiki.*$"), and add a message on the main page telling people to update their links. Ted -- Frango ut patefaciam -- I break so that I may reveal ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Moin-user mailing list Moin-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/moin-user