r2 - 21 Jun 2021 - 03:38:00 - Main.smokrisYou are here: TWiki >  TWiki Web > RedirectPlugin
ANNUNCIO: L'aggiornamento dei pacchetti ISI produce importanti cambiamenti, leggete questa nota

Redirect Plugin

This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.

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

Related Topics

Syntax Rules

  • Redirect to a topic within the web: %REDIRECT{"WikiWord"}%
  • Redirect to a topic in another web: %REDIRECT{"TWiki.WikiWord"}%
  • Redirect to any URL: %REDIRECT{"http://google.com/"}%


  • Once you've added a redirect tag to a topic, you won't ever see the topic itself until you remove the tag. Therefore, to remove or change redirection, you will need to manually enter the appropriate URL to edit the topic.

Redirect Plugin Settings

    • Set SHORTDESCRIPTION = This plugin allows one to produce TWiki topics that automatically redirect to other TWiki topics or URLs.
    • Set DEBUG = 0

Plugin 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: Description:
    data/TWiki/RedirectPlugin.txt Plugin topic
    data/TWiki/RedirectPlugin.txt,v Plugin topic repository
    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: 10 Aug 2021
Change History:  
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

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 TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.RedirectPlugin