Msg#: 4573643 posted 6:47 pm on May 13, 2013 (gmt 0)
I have a codebase that can host multiple sites. The HTTP_Request is checked and it tells me what site the user is visiting and various options in a config file determine the settings and options for each site (different images, css, etc.)
It works fine, but I am wondering if this is the right way to do it or if Google will not like it.
As is, it works as follows. The default page, essentially, has this logic:
If instr(lcase(Request.ServerVariables("HTTP_HOST")),"site1")<>0 Then CONST_CODEBASE="SITE1" If instr(lcase(Request.ServerVariables("HTTP_HOST")),"site2")<>0 Then CONST_CODEBASE="SITE2"
Then, later on all of the options are set based on CONST_CODEBASE
If I have this codebase, users can go to www.site1.com and www.site2.com and get totally different sites.
But, does Google mind? Or are there any other considerations? I'm concerned that it will be seen as two sites at one IP and it will be a problem?
I certainly don't want to maintain two codebases, but should I have a virtual directory for each new site that uses this codebase?
Any help would be greatly appreciated. I've always worked on code, but never back end stuff so I am a little unsure.