<% DO CASE
CASE LOWER(Request.ServerVariables('SERVER_NAME'))='www.mypage1.com' %>
<META HTTP-EQUIV="refresh" CONTENT="1;URL=http://www.mypage1.com/home">
<% CASE LOWER(Request.ServerVariables('SERVER_NAME'))='www.mypage2.com' %>
<META HTTP-EQUIV="refresh" CONTENT="1;URL=http://www.mypage2.com/other">
lcVariable = Request.ServerVariables('SERVER_NAME')
Response.Write('Nombre del Servidor pasado: '+lcVariable)
<FONT FACE="Verdana"><SPAN STYLE="font-size : 8.0pt;">Wait a minute, please ...</SPAN></FONT>
This script works fine, but people don't type www.mypage1.com/scripts/foxweb.exe/programs/Index.fwx , but only www.mypage1.com or www.mypage2.com
Thanks for your appreciated help
Sent by FoxWeb Support on 10/13/2004 09:56:39 PM:
Correct me if I'm wrong, but this is not a FoxWeb-related question. In any case, here it is:
You need to create two separate virtual servers: one for www.mypage1.com and one for www.mypage2.com. Most Web servers support specifying a redirection for requests to specific pages, or even to the root of your server. You will need to specify such redirection for the root folders of each of your virtual servers.
Sent by Carlos Fuertes on 10/13/2004 06:51:01 AM:
Hi, I have two web sites in the same server and I need to redirect to one or another depending on the URL typed by the user. I mean, if a user types on his browser www.mypage1.com the html file Index.htm located at the wwwroot of the server should redirect the user to www.mypage1.com/home1 and if a user types www.mypage2.com then the same file should redirect him to www.mypage2.com/home2.
Any help will be apreciated