Multiple domains Setup

incom - January 15, 2007 - 11:50
Project:Multiple Domains
Version:5.x-1.x-dev
Component:code
Category:support request
Priority:normal
Assigned:Unassigned
Status:closed
Description

I am using 5.0-rc2 and want to use multidomains with multi-site, single installation, shared db, domains like domain1.cm, domain2.com etc. I want all sites looks different, but using same database - Please guide me step by step

#1

adrian - January 15, 2007 - 15:23

There's a bug I just found.

It has to do with the theme_default global.

The module is loaded too late in the initialization process to have an effect on the $theme value.

I'm looking into possible solutions at the moment, but I fear the quickest way to solve this would be to do the following in your settings.php

<?php
 
if ($_SERVER['HTTP_HOST'] == 'domain1.com') {
    
$GLOBALS['theme_default'] = 'mythemehere';
  }
?>

This is exactly the type of code that is being generated by the multidomain module,
but unfortunately it just runs too late in the process.

The other issue is that earlier in the initialization the database isn't available.

#2

wayland76 - January 18, 2008 - 02:05

Can this be closed now?

#3

betz - November 4, 2008 - 07:15
Status:active» closed
 
 

Drupal is a registered trademark of Dries Buytaert.