Can anyone tell me of a good application that can save a .asp file. I am very new to web development and am trying to get two sites with two seperately registered domains... (with iWeb)... to work on one IP adress. The server hosting we use (crystaltech) has a knowledgbase that explains a bit about a script I have to use
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN1") <> 0 then
response.redirect "subdirectory to go to"
elseif InStr(sname,"DOMAIN2") <> 0 then
response.redirect "2nd subdirectory to go to"
end if
%>
so I put it
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"flcentre") <> 0 then
response.redirect "D:\inetpub\flcentre\flcentre\Home.html"
elseif InStr(sname,"jimspostcards") <> 0 then
response.redirect "D:\inetpub\flcentre\jimspostcards\Welcome.html"
end if
%>
The one thing I am iffy with is the subdirectory to go to ... am I using the right path for this (does it look somewhat right)... or should it look different. Right now all I get (when I use a .htm page with the script) is a page with text and nothing happening. I have teh felling I could be missing something very obvious.
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"DOMAIN1") <> 0 then
response.redirect "subdirectory to go to"
elseif InStr(sname,"DOMAIN2") <> 0 then
response.redirect "2nd subdirectory to go to"
end if
%>
so I put it
<%
sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"flcentre") <> 0 then
response.redirect "D:\inetpub\flcentre\flcentre\Home.html"
elseif InStr(sname,"jimspostcards") <> 0 then
response.redirect "D:\inetpub\flcentre\jimspostcards\Welcome.html"
end if
%>
The one thing I am iffy with is the subdirectory to go to ... am I using the right path for this (does it look somewhat right)... or should it look different. Right now all I get (when I use a .htm page with the script) is a page with text and nothing happening. I have teh felling I could be missing something very obvious.