Welcome to WebmasterWorld Guest from 54.167.175.218

Forum Moderators: phranque

Hosting two sites from one codebase

Hosting two sites from one codebase

   
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.

Thanks.
8:51 pm on May 13, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



multiple sites on one IP is a common occurrence and I would only be worried if the other sites on that IP make you look like a "bad neighborhood".
3:35 pm on May 16, 2013 (gmt 0)



thank you.
7:55 pm on May 16, 2013 (gmt 0)

WebmasterWorld Administrator phranque is a WebmasterWorld Top Contributor of All Time 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld, rmathome!
 

Featured Threads

Hot Threads This Week

Hot Threads This Month