0

In a multisite set up, the default domain www.domain.com point to the 'sites/default' folder.

I want a temporary subdomain point to the default site for development.

In the sites.php files I have:

$sites['dev.domain.com'] = 'default'; // this line can be removed due to the default behavior (see comment below)

$sites['sub1.domain.com'] = 'sub1.domain.com';

$sites['sub2.domain.com'] = 'sub2.domain.com';

$sites['sub3.domain.com'] = 'sub3.domain.com';

Pointing to the 'default' folder is not working for some reason? What is wrong?

2
  • 1
    The default behaviour if the domain isn't listed in sites.php is to go to the default site. If dev.domain.com isn't taking you to default then which site does it take you to? Sounds like there's more to this and you've got other things happening
    – Leigh
    Oct 16 '20 at 8:03
  • 1
    @Leigh Yes, there is a misconfiguration in the DNS settings. That is why it was not working indeed.
    – Lance
    Oct 16 '20 at 9:39
0

Above settings are correct. But there was an error in the DNS settings.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.