Re: how to make multiple website on one host

From: Date: Mon, 04 Feb 2008 02:52:18 +0000
Subject: Re: how to make multiple website on one host
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-268613@lists.php.net to get a copy of this message
On Sun, February 3, 2008 1:20 am, jeffry s wrote: > i am wondering whether this can be done. i know it can. > is it possible to make one website with the ability to host multiple > website. > it is something like website generator. eg: www.shopify.org > > let say for example i have a website www.example.org. > i can point a domain name (www.example1.org) to the server where > www.example.org hosted, > and when user visit www.example1.org, it execute the same scripts as > www.example.org with > with different themes and website configuration. switch($_SERVER['HTTP_HOST'])){ case 'example1.org': load('example1'); break; case 'example.org': load('example'); break; } You should also consider playing games with Apache mod_rewrite -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/from/lynch Yeah, I get a buck. So?

« previous php.general (#268613) next »