Hi there heroes!
When a Blog Admin is logged in, and try to enter our cloudstore.pt/mystore (aka wp-admin), he get's an error message saying he does not have privilegies to access that admin, like on the attached image.
A few months ago, Rupok suggested us to use a function like this one: https://wordpress.org/support/topic/force-redirect-users-to-respective-sub-site?replies=16
Here's the thread of the support ticket:
Unfortunately, we are having an error/warning when using this code, please check the attached screenshot as well.
Also, when that mu plugin active, the user can't see the main site any more (cloudstore.pt), as he get's automatically redirected to his store.
Could you please give some ideas about the best way to achieve this redirect to the correct blog admin, but keep the access to the main site front end?
Sorry for the confusion, but i'm a little lost here. Thanks again for your help!