Two Domains

Get help with installation and running phpwcms here. Please do not post bug reports or feature requests here.
Post Reply
brazzo74
Posts: 1
Joined: Wed 15. Mar 2006, 08:16
Contact:

Two Domains

Post by brazzo74 »

I've got two Domains on one Server. How can i manage two different page contents with phpwcms? Do i have to install i twice?
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi brazzo74,
Do i have to install i twice?
For proper function: YES

Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

Could I use 1 database fore 2 phpwcms ?? Lat's say i want to have 1 webpage and 2 domains. And i would like to subscribe both to google. So, can i install two identical phpwcms but use only 1 db. ?? or, how to manage the problem.
hi from Poland,
Marcin - site owner
pepe
Posts: 3954
Joined: Mon 19. Jan 2004, 13:46

Post by pepe »

Hi erodzina,

yes, it's possible to have different installations and only ONE db!!!


It's more a workarround than useful... but it works :wink:
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

I have question. In config file i'v got:
$phpwcms["site"]

and could i do something like that:
$phpwcms["site"] = "";

so that's way i don't have root adres at all, so when i will use 1 domain i will get 1 adres, and whan i go on site from another domain it won't redirect me to 1 domain name. is that's ok ?? A'm i thinking ok ?
hi from Poland,
Marcin - site owner
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

I'm waiting. I need this answer, because i don't want to break my webpage. Sorry for writing ;)
hi from Poland,
Marcin - site owner
User avatar
flip-flop
Moderator
Posts: 8178
Joined: Sat 21. May 2005, 21:25
Location: HAMM (Germany)
Contact:

Post by flip-flop »

Hi,

I think that´s a way:

Code: Select all

$phpwcms["site"]              = "http://".$_SERVER['SERVER_NAME']."/";
Gruß Knut
>> HowTo | DOCU | FAQ | TEMPLATES/DOCS << ( SITE )
erodzina
Posts: 33
Joined: Mon 31. Oct 2005, 12:19

Post by erodzina »

wow, it's working so now I have two domains under one phpwcms and i don't need to install two phpwcms under one db. THANK's You'r the best :)

now, i can put other domain to google too :) :) COOL
hi from Poland,
Marcin - site owner
Post Reply