I reported this problem some time ago in the forum under "Bug? Proxy redirect to root after login success - instead of staying within assigned sub-folder". If I remember right the problem started about 3 years ago with one of the mayor updates.
The problem is that I can not host the code from within a sub-folder of a website without some functions not working. Some of the problems: 1) During login I get redirected to the root folder. 2) "All Websites"
index.php?module=MultiSites&action=index&idSite=1&period=range&date=previous30 produces a page with no record content showing.