hi there,
I’ve set up my first EE multiple site installation which works fine in respect of the front-end websites. However, I have an issue with the “View Site” link in the top-right drop down in the EE admin system.
At present I’m able to administrate the CMS via domain1.com/cms/ and domain2.com/cms/
By default EE allows me to manage both sites via both URLs. The View site link, however, always goes back to the default website. I think this may also cause issues with links which EE prepends the site_url to.
From what I can see the issue is caused by:
* We are setting certain config settings via the config.php depending on the server hostname. This includes $config[‘site_url’]
This is done to allow us to have a local, staging and live environment without having to make amendments to the database.
* Because of the above when managing Site 2 via the Site 1 CMS admin URL the View site link is incorrect. Therefore, is it possible to lock the editing of Site 2 to only via the Site 2 URL?
* Or is it possible for us to know what site is being edited in the config.php file so we can set the correct site_url?
Any ideas appreciated.
best wishes,
Simon