Administering an ISP Installation |
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")
%>