Fullscreen
[Show/Hide Right Column]

Plugin Redirect

This plugin semi-permanently redirects any existing wiki page to any other specified wiki page or URL. If it's for wiki pages, a better alternative is the Semantic alias.

Page Alias redirects wiki pages which do not exist to ones that do.

Starting in version 3.0, it is bundled.

Usage

The redirect plugin usage is:
{REDIRECT(page=pagename) /}

or for URLs (tiki-something.php... or http://...)
{REDIRECT(url=url) /}


Note:
  • It does not check permissions of the destination page, so users may need to login after redirect.
  • It can redirect to a wiki page or to any URL, which is why there is Plugin security
  • There is no warning about "you will be redirected in 5 seconds message" or similar; it's instant!
  • There is a check to stop possible loops
  • URL redirects can be both: absolute starting with protocol like http:// or relative to the Tiki root

How to edit the redirect page?

Q:How do you go back to original page for editing...
A: Use /tiki-editpage.php?page=TheTargetPageWithTheRedirectPlugin

You can also go to the page history to view source, compare or unroll changes made that include the REDIRECT code. Use /tiki-pagehistory.php?page=TheTargetPageWithTheRedirectPlugin

Required parameters are in bold
Preferences required: wikiplugin_redirect
Parameters Accepted Values Description Default Since
page pagename Wiki page name to redirect to.
url url Complete URL, internal or external.
perspective int The ID of a perspective to switch to (requires feature_perspective).



Related pages

Alias

Note about alternate syntax
There is a note in changelog.txt "redirect feature: if a page contains only #REDIRECT pagename, the page view will display the other page. redirect is interpreted only one time" but this doesn't work in 2.4 or 3.1 and will not be added because it would just complexify the wiki parser.



Contributors to this page: Marc Laporte9140 points  , mlpvolt4388 points  , luciash d' being2160 points  , junkY2 points  , lindon132 điểm  , RandyH234 points  , Xavi67871 điểm  and xavidp1213 points  .
Page last modified on Monday 16 April, 2012 04:59:00 UTC by Marc Laporte9140 points .
The content on this page is licensed under the terms of the Creative Commons Attribution-ShareAlike License.

Site Language

Reference Guide

Keywords

These keywords serve as "hubs" for navigation within the Tiki documentation. They correspond to development keywords (bug reports and feature requests):



Tiki Newsletter

Delivered fresh to your email inbox!
Newsletter subscribe icon
Don't miss major announcements and other news!
Contribute to Tiki