Method Redirect()


 

Syntax

:Redirect( cURL ) --> nBytes

 

Parameters

 

cURL

The location of the new page (URL) the User's Browser should display.

This URL can be relative or absolute.

 

Note:

For absolute URLs, you MUST include the "http://", otherwise Redirect treats it as a relative URL based on the current CGI location. To set the path to the root of the current domain, use / (slash) as the root and follow it with the appropriate domain path to get to the page you want.

 

Return

Number of Bytes sent back to User.

 

Description

Useful if you want to look at the information passed to the Server and determine where the User should go.

The Redirect() Method sends back the appropriate HTTP messages to direct the User's browser to look at the enclosed URL to find the page content.

 

See Also:

:SendFile(), :Start(), :Message(), :Write()

 



Contents