[Moin-user] how do I do hostname redirection in a farm?
R.Bauer
rb.proj at gmail.com
Thu Jul 1 04:13:24 EDT 2010
Ted Stern schrieb:
> 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?
>
> Ted
You need to set a 301 redirect on the old system.
See the config options for your server.
e.g. a RewriteRule
search by keys for
htaccess 301 redirect tutorial
Reimar
More information about the Moin-user
mailing list