added new config logic, fixed bugs when php7admin is not root of URL