Lasso Soft Inc. > Home

[Redirect_URL]

[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
  • Parameters
[Redirect_URL: 'Destination URL']

[Redirect_URL: 'Destination URL', -NoAbort]

[Redirect_URL: 'Destination URL', -Type='301']
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.
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/']
Tag Link [Redirect_URL] Category Output
Type Process Data Source Any
Support Preferred Version 3.0
Output Type None Security None
Implementation LassoScript Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0,LDML3x

Please note that periodically LassoSoft will go through the notes and may incorporate information from them into the documentation. Any submission here gives LassoSoft a non-exclusive license and will be made available in various formats to the Lasso community.

LassoSoft Inc. > Home

 

 

©LassoSoft Inc 2015 | Web Development by Treefrog Inc | PrivacyLegal terms and Shipping | Contact LassoSoft