Administering an ISP Installation

Previous Topic Next Topic

Contents of reskit1.microsoft.com/scripts/redirect.asp

Copy this sample code into a text file and name it Redirect.asp. Then copy the file into the Scripts directory of the instance you are using. In this example, it is reskit1.microsoft.com.

<%

  Option Explicit

  Dim DLCCookieNameString

  DLCCookieNameString = "PseudoHost"

  Response.Cookies(DLCCookieNameString) = Request.QueryString("Host")
  Response.Cookies(DLCCookieNameString).Domain = Request.QueryString("Host")
  Response.Cookies(DLCCookieNameString).Path = "/"

  Response.Redirect "http://" & Request.QueryString("Host") &
  Request.QueryString("NewLocation")

%>

© 1997-1999 Microsoft Corporation. All rights reserved.