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

Webmaster General Forum

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



 
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.

Thanks.

 

phranque

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



 
Msg#: 4573643 posted 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#: 4573643 posted 3:35 pm on May 16, 2013 (gmt 0)

thank you.

phranque

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



 
Msg#: 4573643 posted 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.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved