r2 - 2009-12-23 - 14:11:39 - TWikiAdminUserYou are here: NTP >  TWiki Web > RedirectPlugin
NTP users are strongly urged to take immediate action to ensure that their NTP daemons are not susceptible to being used in distributed denial-of-service (DDoS) attacks. Please also take this opportunity to defeat denial-of-service attacks by implementing Ingress and Egress filtering through BCP38.

ntp-4.2.8p13 was released on 07 March 2019. It addresses 1 medium-severity security issue in ntpd, and provides 17 non-security bugfixes and 1 other improvements over 4.2.8p12.

Please see the NTP Security Notice for vulnerability and mitigation details.

Are you using Autokey in production? If so, please contact Harlan - he's got some questions for you.

Redirect Plugin

Create a redirect to another topic or website.

I typically use this to make easy-to-type shortforms/acronyms of topic names. For example:

  • Actual content appears under Main.LightweightDirectoryAccessProtocol
  • Main.LDAP contains just a redirect tag. Referencing Main.LDAP anywhere or entering it in the Go box takes one directly to Main.LightweightDirectoryAccessProtocol

Syntax Rules

  • Redirect to a topic within the web: %REDIRECT{"SomeTopic"}%
  • Redirect to a topic in another web: %REDIRECT{"Someweb.SomeTopic"}%
  • Redirect to any URL: %REDIRECT{"http://domain.com/"}%
  • Pass parameters:
    • Url parameters are passed on: http://domain.com/twiki/bin/view/Main/TopicThatContainsARedirect?q=LDAP"}%. The landing topic url will contain these parameters
    • Parameters can also be passed to the variable: %REDIRECT{"Someweb.SomeTopic?q=LDAP"}%
    • REDIRECT parameters override url parameters

Prevent redirecting

To view the topic that contains a REDIRECT, pass parameter noredirect=on to the url. For example:


Wikipedia like "Redirected from..."

A redirect now appends the redirectedfrom parameter to the url which contains the Web.Topic that the user has been redirected from. This allows us to display Wikipedia like "Redirected from ..." text on the destination topic. You can use the %URLPARAM{redirectedfrom}% variable to access the parameter and create the "Redirected from..." text.

Below is an example you can put in your template:

%IF{ "$'URLPARAM{redirectedfrom}'" then="<span class='twikiGrayText'>(Redirected from <a href='%SCRIPTURLPATH{view}%/%URLPARAM{redirectedfrom}%?noredirect=on'>%URLPARAM{redirectedfrom}%</a>)</span>"}%

Which will display the following on topics that have been redirected:

(Redirected from Web.Topic)

Related Topics

Plugin Settings

  • Set SHORTDESCRIPTION = Create a redirect to another topic or website
  • Set DEBUG = 0

Test topics

If installed:

Installation Instructions

Note: You do not need to install anything on the browser to use this plugin. The following instructions are for the administrator who installs the plugin on the server where TWiki is running.

  • Download the ZIP file from the Plugin web (see below)
  • Unzip RedirectPlugin.zip in your twiki installation directory. Content:
    File:Sorted ascending Description:
    data/TWiki/RedirectPlugin.txt,v Plugin topic repository
    data/TWiki/RedirectPlugin.txt Plugin topic
    lib/TWiki/Plugins/RedirectPlugin.pm Plugin Perl module
  • Test if the installation was successful (see above syntax notes)

Plugin Info

Plugin Author: TWiki:Main/SteveMokris
Plugin Version: 24 Nov 2008
Change History:  
24 Nov 2008: TWiki:Main.AndrewRJones: Ability to display Wikipedia like "Redirected from..."
22 Apr 2007: Arthur Clemens: url parameters are now passed on. Adapted from TWiki:Main.JohnRouillard.
21 Apr 2007: Arthur Clemens: fixed redirect to non-wiki word topics; added noredirect=on parameter; added support for TWiki:Codev.ShorterURLs.
10 Aug 2006: Ability to redirect to URL restored by TWiki:Main/ThomasWeigert. Also added support for URL parameters. Fixed a few bugs.
09 Jun 2006: Dakar port by TWiki:Main/MeredithLesley
20 Jun 2003: Initial version
CPAN Dependencies: none
Other Dependencies: none
Perl Version: 5.005
Plugin Home: http://TWiki.org/cgi-bin/view/Plugins/RedirectPlugin
Feedback: http://TWiki.org/cgi-bin/view/Plugins/RedirectPluginDev
Edit | WYSIWYG | Attach | Printable | Raw View | Backlinks: Web, All Webs | History: r2 < r1 | More topic actions
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding NTP? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.RedirectPlugin