Question
I have successfully migrated a TWiki from one server to a new server with your latest software. I want to be able to "turn off" The TWiki on one machine while I prepare it on the other. I guess this can be accomplished in Apache, but was wondering if there was a TWiki way of redirecting access to any TWiki page to either the new Twiki on the new machine or a web page outside the realm of the TWiki.
Environment
--
TWikiGuest - 12 May 2005
Answer
You can add this to any topic you want to have redirected to a new URL:
This topic has moved to http://new.server/cgi-bin/view/%WEB%/%TOPIC%, you will be redirected in 15 seconds
<meta http-equiv="refresh" content="15; URL=http://new.server/cgi-bin/view/%WEB%/%TOPIC%">
This will redirect to the URL on the new server after 15 seconds. If you want to have this for all topics you can create a new skin that does the redirect and set it as the default skin in your
TWikiPreferences.
How to create a
redirect skin:
- In
twiki/templates copy view.print.tmpl to view.redirect.tmpl
- Edit
view.redirect.tmpl and
- add above
meta http-equiv="refresh" tag to the head section
- and replace:
%TEXT%
%META{"form"}%
%META{"attachments"}%
with this:
This topic has moved to http://new.server/cgi-bin/view/%WEB%/%TOPIC%, you will be redirected in 15 seconds
--
PeterThoeny - 12 May 2005