Microsoft Internet Security and Acceleration Server 2000

FPCWebPublishingRule.SetWebSiteAndPorts Method

Sets the action to Redirect and sets the redirect Web site and ports.

VBScript Syntax[VBScript]

FPCWebPublishingRule.SetWebSiteAndPorts(Action, sWebSite, lHTTPRedirectPort, lFTPRedirectPort, lSSLRedirectPort )

C++ Syntax[C++]

HRESULT SetWebSiteAndPorts (
  FpcPublishRouteType Action, 
  BSTR sWebSite, 
  long lHTTPRedirectPort,
  long lFTPRedirectPort,
  long lSSLRedirectPort
);

Parameters

Action
The FpcPublishRouteType value that indicates whether the Web publishing rule calls for redirection. If this has a value of fpcRouteDiscard, the sWebSite parameter should be set to an empty string. If this has a value of fpcRouteRedirect, the sWebSite parameter cannot be an empty string.
sWebSite
String value specifying the Web site to which to redirect. The default value for sWebSite is an empty string. If Action has a value of fpcRouteRedirect, the sWebSite parameter cannot be an empty string.
lHTTPRedirectPort
Long value specifying the HTTP redirect port. The default value is 80.
lFTPRedirectPort
Long value specifying the FTP redirect port. The default value is 21.
lSSLRedirectPort
Long value specifying the SSL redirect port. The default value is 443.

Applies To

FPCWebPublishingRule