Multisite: Requests for site's front page redirect to default site

Events happening in the community are now at Drupal community events on www.drupal.org.
chrisproctor's picture

As a high school English teacher, I have set up several Drupal multisite installations over the last few years, and have been able to work through many of the usual issues, but I'm currently totally stumped by an issue: Everything works on my new site except the front page.

I just added a new site to my installation -- let's call it new.example.com. I went to new.example.com/install.php, and everything worked out fine. When I go to new.example.com/node, I get the front page. When I go to new.example.com/admin, I get admin. When I go to new.example.com/? I get the front page. Everything works fine whenever I supply any URL argument.

But when I type new.example.com, expecting the front page, it loads from the default multisite directory, not the new.example.com directory. The front page for my default site appears. When I tried removing settings.php in the default directory, new.example.com brings up the install script, as expected.

Nothing changes when I disable Clearn URLs. Any ideas? Thanks!

Comments

In settings.php

Ole Martin's picture

Have you set $base_url = 'http://new.example.com'; // NO trailing slash! ?
I use also $cookie_domain = 'example.com'; because of logged in users can go to all my subdomain
Edit: I used prefix_database and Shared "Users" and "Role"

Solution?

max36's picture

I ran into the same issue … did you solve it? Setting $base_url doesn't have an effect …

Multisite

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: