LassoScript Utility
Basics Browse Detail

[Redirect_URL]

Tag Link [Redirect_URL] Category Output
Type Process Source Available No
Support Preferred Version 3.0
Change Updated Data Source Any
Output Type None Security None
Implementation LassoScript Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0, Lasso 3.x

Description

[Redirect_URL] accepts a single parameter which is a URL to which the client should be sent. The destination URL can be either a full URL including host name (e.g. http://www.example.com/folder/default.lasso) or a reference to another file on the same machine (e.g. /folder/default.lasso).

The [Redirect_URL] tag will automatically abort processing the current page unless the -NoAbort parameter is specified.

An optional -Type parameter allows the type of redirect to be selected. By default a 302 FOUND redirect is generated. If -Type='301' or -Type='MOVED' is speciifed then a 301 MOVED redirect is generated instead. The default 302 redirect specifies a temporary move. The optional 301 redirect instructs the browser or Web crawler that a page has been moved permanently so they can update their bookmarks or page references.

The [Redirect_URL] tag should be used after any other tags which modify the header. These include the [Header] ... [/Header] tags, [Content_Type] tag, [Server_Push] tag, and [Cookie_Set] tag.

Syntax

[Redirect_URL: 'Destination URL']

[Redirect_URL: 'Destination URL', -NoAbort]

[Redirect_URL: 'Destination URL', -Type='301']

Parameters

Required Parameters
Destination URL The URL to which the visitor should be redirected.
Optional Parameters
-NoAbort Unless this parameter is specified the [Redirect_URL] tag will automatically abort after rewriting the header.
-Type Allows the type of redirect to be specified. By default a 302 FOUND redirect is generated. Setting -Type='301' or -Type='MOVED' will instead generate a 301 MOVED redirect.

Change Notes

The -Type option was added in Lasso 8.5.2.

Examples

To redirect the visitor to another URL:

Use the [Redirect_URL] tag with the URL of the desired destination. The following example redirects the site visitor to OmniPilot's Web site <http://www.blueworld.com>

[Redirect_URL: 'http://www.omnipilot.com/']