Redirect

Overview

Redirects the client browser to the specified URL and terminate any processing of the current web content

Syntax

Redirect(1, 2)

Function Properties

Ordinal Type Description
1 string Required URL used to redirect the client browser via a HTTP 302 redirect
2 Boolean Indicates whether the redirect is temporary or permanent. A value of true indicates a permanent HTTP 301 redirect. A value of false indicates a temporary HTTP 302 redirect.

Example

<script runat=server>
     Platform.Response.Redirect("http://www.example.com");
</script>
Last Updated: Jun 8, 2021