Forums / Cotonti / General / Trouble with using same user table on two sites

using two or more domains to show unique content

GHengeveld
#29677 2011-05-17 14:03

Lombi's solution will work but sounds overkill to me because you're building separate sites with just some shared tables. I'd make all domains point to the same place (the main domain) and then use $_SERVER['HTTP_HOST'] in a plugin to determine which site was accessed and show your information based on that. This also allows for combined results (such as shared news categories that show on multiple sites). Lombi's solution can't do that (you'd have to publish the same article on every site).