Multisite | default site pages not found after creating another site



Multisite setup

If i set up multisite in my localhost the main site pages get lost and the main home gets data from the secondary site (see browser title Project instead of Corporate). But the secondary site does work as normal.

Something wrong in my config or a bug?

I would recommend not setting up canonical URLs at subdirectories, particularly with multisite. It’s not something you’d really do in production (I would hope) and it’s likely going to generate edge cases.

What is the recommended way to test this locally?

Production will be separate urls, and does work as advertised…

Typically you’ll want to create top level domains locally, like verycoolsite.test or something like that, since that’s more akin to how you’ll be running the site in production.