Forum Moderators: open

Message Too Old, No Replies

Using Extra Domains

how would SE react to this code?

         

hasbeen

6:34 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



My host allows me to add extra domains to a existing account. However, I have to use the following code to get to the extra domain:

sname = Request.ServerVariables("SERVER_NAME")
sname = ucase(sname)
if InStr(sname,"APPLE") <> 0 then
response.redirect "appledir"
elseif InStr(sname,"BANANA") <> 0 then
response.redirect "bananadir"
end if

How would a search engine view this? I'm not terribly familiar with server side variables, but I do know about the 302 that gets sent using a response.redirect. Would that be the case here?

korkus2000

6:39 pm on Jun 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



So your host points the dns to the root directory. Then your script checks the location bar and fowards it to a directory. I hope they give that to you for free. As long as a host sets up your iis alias anyone can do that. It is sort of a hack. It will appear to a SE as a server side redirect.

korkus2000

6:47 pm on Jun 27, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You should also place that in your global.asa. That will let you have one piece of code in one place that handles all pages. You should ask your host to create a virtual iis folder in your hosting folder. This is a nothing task. As long as you don't exceed file and bandwidth constrants they shouldn't care. Most MS hosts will do this for a small yearly fee.

hasbeen

7:01 pm on Jun 27, 2002 (gmt 0)

10+ Year Member



Thanks, Korkus.

Yeah, it's a free service, and a good way to host a few more sites without paying an extra fee.