Back to product page

Redirect method


Redirects response to new URL.

Syntax

  • Basic
object.Redirect (NewURL, [TempRedirect])
The Redirect(object,NewURL,TempRedirect) syntax has these parts:
objectAn expression evaluating to an object of type WebResponse
NewURLA String value. New URL (may include other hostname) where client is redirected.
TempRedirectOptional. A Variant value. Defines if client receives 'temporary' or 'permanent' redirection notice.

Remarks

This method will redirect client to location you specify. You can send out '301 Moved Permanently' or '302 Moved Temporarily' status code, depending on TempRedirect value. After this method is called, Response is sent to the client and you should not change it anymore.

Platforms

Windows