Multisite icon indicating copy to clipboard operation
Multisite copied to clipboard

Modul chooses wrong domain (when multiple domains have the same root)

Open Radon8472 opened this issue 4 years ago • 0 comments

When you have multiple domains in your config, sharing the same root e.g.

you have config for local dev and online env

$config->MultisiteDomains = array(
    "domain1.com" => array(
            "root" => "root_domain1.com",
            "http404" => 27
        ),
    "domain1.local" => array(
            "root" => "root_domain1.com",
            "http404" => 27
        )
);

The modul always redirects links to the first domain, where the root-key matches.

expected behavoir (on domain domain1.local)

  • it should rewrite links to domain1.local

current behavoir

  • modul rewrites links to domain1.com

Radon8472 avatar Oct 26 '21 09:10 Radon8472