[FIX] root path of site

in some cases, when domains pointing on subdirectories, the root path was wrong