
18/02/2005, 06:04
|
 | | | Fecha de Ingreso: noviembre-2004
Mensajes: 2.344
Antigüedad: 20 años, 4 meses Puntos: 8 | |
Ola , yo lo que hago, es colocarlas en distintos directorios virtuales
y luego en la página de inicio del IIS (iisstart.asp, default.asp o algun otro nombre) coloco este código:
<%
Dim strServername, strLocalname, strServerIP
strServername = LCase(Request.ServerVariables("SERVER_NAME")) ' Server's name
strServerIP = LCase(Request.ServerVariables("LOCAL_ADDR")) ' Server's IP address
strRemoteIP = LCase(Request.ServerVariables("REMOTE_ADDR")) ' Client's IP address
' If the querystring variable uc <> 1, and the user is browsing from the server machine,
' go ahead and show them localstart.asp. We don't want localstart.asp shown to outside users.
If Request("uc") <> 1 And (strServername = "www.loquesea.com" Or strServerIP = strRemoteIP) Then
Response.Redirect "/Aplicacion1/paginainicio1.aspx"
Else if Request("uc") <> 1 And (strServername = "www.loquesea2.com" Or strServerIP = strRemoteIP) then
Response.Redirect "/Aplicacion2/paginainicio2.aspx"
en if
%> |