Redirect To Plugin

The RedirectToPlugin can be used to redirect a user to another page. In other words it makes a page an alias for another page.

Arguments

Use only one of these arguments at a time.

page The page to redirect to (a wiki page name).
href An external URL to redirect to. Redirection to external URLs will only work on locked pages. (If the URL contains funny characters, you'll probably have to put quotes around the URL.)

Caveats

The RedirectToPlugin invocation must be the first thing on a page. For most purposes it makes any other content on the page inaccessible.

Example

A page may be made a alias for the HomePage by placing this code at the top:

<?plugin RedirectTo page="HomePage" ?>

To see the example in action, visit HomePageAlias.


PhpWikiDocumentation

Last edited on Saturday 15 February 2003 23:46:58




Copyright Southampton University Canoe Club (SUCC)

This website is hosted by Southampton University Students Union.
If you would like hosting for your club or society contact us at hosting@susu.org.
The views expressed on this website are not the views of SUSU or the University of Southampton.

Edit | Lock Page | Remove Page | PageHistory | Diff  | PageInfo