Multisite
Multisite copied to clipboard
Modul chooses wrong domain (when multiple domains have the same root)
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