1
fredski
Multisite / Multidomain
  • 2004/4/26 7:06

  • fredski

  • Quite a regular

  • Posts: 265

  • Since: 2004/1/26


I have been given this advice from a webmaster who uses XOOPS as a multi domain CMS, the idea is aiming at XOOPS being a single database as the backend of all my sites, the only thing that will change between sites will be the headers, contact-us module and a few static pages. The problem is that the guy who gave me this snippet is very busy with his own sites, and I don't want to pester him, so I'm posting here for advice on my next step.

Quote:

Route all sites to your
basic XOOPS installation - the static pages can easily be output
depending on HTTP_HOST:
php: switch ($HTTP_HOST) {
case "myfirstdomain.com":
case "www.myfirstdomain.com":
echo "This is the text for myfirstdomain.com"
break;
case "myseconddomain.com":
case "www.myseconddomain.com":
echo "This is the text for myseconddomain.com"
break;
etc. pp.

Basically the same applies to minor changes to the modules you want to
use. Just query HTTP_HOST and modify output accordingly. For the news
module you might want to add a column "domain" to the database if you
want site specific news.



Hmmmm he makes it sound so easy, how easy would that be to do??? and exactly how would I go about it???

2
xgoof
Re: Multisite / Multidomain
  • 2004/5/3 8:41

  • xgoof

  • Just popping in

  • Posts: 28

  • Since: 2004/4/28


You might want to look Here

Login

Who's Online

335 user(s) are online (260 user(s) are browsing Support Forums)


Members: 0


Guests: 335


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits