homepage Welcome to WebmasterWorld Guest from 54.211.138.180
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor
Home / Forums Index / WebmasterWorld / Webmaster General
Forum Library, Charter, Moderators: phranque & physics

Webmaster General Forum

    
Hosting two sites from one codebase
Hosting two sites from one codebase
rmathome




msg:4573645
 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.

 

phranque




msg:4573712
 8:51 pm on May 13, 2013 (gmt 0)

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".

rmathome




msg:4574742
 3:35 pm on May 16, 2013 (gmt 0)

thank you.

phranque




msg:4574785
 7:55 pm on May 16, 2013 (gmt 0)

welcome to WebmasterWorld, rmathome!

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / WebmasterWorld / Webmaster General
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About
© Webmaster World 1996-2014 all rights reserved