Re: how to make multiple website on one host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



can you tell me more about mod_rewrite?


On Feb 4, 2008 10:52 AM, Richard Lynch <ceo@xxxxxxxxx> wrote:

>
>
> 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?
>
>

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux