ltm rule command redirectΒΆ

iRule(1)					  BIG-IP TMSH Manual					     iRule(1)

redirect
       Redirects an HTTP request to the specific location.

SYNOPSIS
       redirect to HOST_URI

DESCRIPTION
       Redirects an HTTP request to a specific location. The location can be either a host name or a URI. This is a
       BIG-IP 4.X statement, provided for backward compatibility. You can use the equivalent 9.X command
       HTTP::redirect instead.

       Syntax

       redirect to [ | ]

	    * Redirects an HTTP request to a specific location.

RETURN VALUE
VALID DURING
EXAMPLES
	when HTTP_REQUEST {
	    # HTTP::redirect, HTTP::host and HTTP::uri should be used instead
	    redirect to "https://[http_host][http_uri]"
	}

HINTS
SEE ALSO
       HTTP::redirect

CHANGE LOG
       @BIGIP-9.0.0 --First introduced the command.

BIG-IP						      2020-06-23					     iRule(1)