Jump to:
| Project: | Multiple Domains |
| Version: | 5.x-1.x-dev |
| Component: | interface |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
Issue Summary
I cannot find any descent information about multidomain usage, so I tried it on trial and error basis. More or less I made it working but.. I have some issues:
- when I acces site using two diferent domains mostly everything is ok, but some links are targeted to the first domain even if I am on the second. For an example, it seems that all article titles are linked to first domain even when I am looking contents using second domain.
- when I change some seting for second domain it also affects the first domain. I wanted to make site info different, but when I renamed second domain site, new name showed on the first domain too. Also, when I changed default template for the second domain, change affected the first domain too.
What I am trying to accomplish is this:
I have three domains: central.com, topic1.com and topic2.com. I want topic1.com to show contents specific for subjects on topic1, and topic2.com to show contentes specific on topic2, but central.com to show contents of both domains and also some more general contents. Also I want three sites to look differently (different logo, title, and even template).
Is this possible with multidomain plugin?
Comments
#1
Yes, this is the right module to start with.
I have this more or less working in my own blog (http://www.levavie.com).
To display site-specific information go to the domain settings and change the initialization code. E.g.:
<?phpglobal $conf;
$conf['site_slogan']='Domain registration';
$conf['site_frontpage']='guides/domain-registration';
?>
Then, you will have to change the template to use the new variables.
#2
Some variables (such as the theme name and the default front page) can only be changed in settings.php.
For example, add the following setup in the end of your sites/default/settings.php:
<?phpif ($_SERVER['HTTP_HOST'] == 'topic1.com') {
$conf = array(
'site_name' => 'My Drupal site',
'theme_default' => 'minnelli',
'anonymous' => 'Visitor',
);
}
?>
Note: Multidomain uses the same code on the same sites/default directory is used for all sites.
#3
I am still strugling with this. I simply cannot find a way to make one meny to be shown on one doman and other to be shown on other. I simply get all contents on both domains.