I found an strange behaviour on multisite, when is enabled maintenance mode.
Steps to reproduce:
Create 2 sites
- site 1 with theme1 - on main www.example.com
- site 2 with theme2 - on subdomain user.example.com
On site 1 enable maintenance
On site 2 (in default mode) is maintenance enabled too but picked maintenance html is not pointing to site1 theme1 but site2 theme2 …
When visited site 2, cms is looking for maintenance template and ignoring that users is backend authenticated (probably due to subdomain) that means, it returns 404 for maintenance template.
workaround is enable multisite on maintenance, to separate, but this is not a gooood way how to handle subdomains, when you need to share session between main toplevel…
second workaround is to update config/session.php and set domain to ‘.example.com’ (as solution) to share session info about backend user… this will correctly showing page from site 2