Dashboard > RIFE > ... > Built-in generic elements > Redirect
RIFE Log In | Sign Up   View a printable version of the current page.
Redirect


Added by Steven Grimm, last edited by Steven Grimm on Jul 18, 2006
Labels: 
(None)

RIFE includes the rife/http/redirect.xml element to make it easy to redirect from one location to another. The element supports the following properties:

  • to - The target where the redirection should go to.
  • type - The type of the target, according to this property the target value will be interpreted differently. Currently it supports:
    • url - The 'to' value is a regular URL and will be used as a raw value for the redirect (this is the default value if it hasn't been specified).
    • element - The 'to' value is the ID of an element which will be resolved according to the redirection element that you're defining. It van thus be both relative and absolute.

So you can for instance redirect to the URL of the .SOME_ELEMENT_ID element like this:

<element id="REDIRECT" file="rife/http/redirect.xml" url="/redirecturl">
    <property name="to">.SOME_ELEMENT_ID</property>
    <property name="type">element</property>
</element>

or redirect to http://www.uwyn.com like this:

<element id="REDIRECT" file="rife/http/redirect.xml" url="/redirecturl">
    <property name="to">http://www.uwyn.com</property>
</element>



Are you enjoying Confluence? Please consider purchasing it today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.1a Build:#515 May 19, 2006) - Bug/feature request - Contact Administrators