improve site root detection - [SCRIPT_URI] is not always present so use HTTP_HOST and REQUEST_URI
improve site root detection - [SCRIPT_URI] is not always present so use HTTP_HOST and REQUEST_URI

thexerteproject/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits,torinfo/xerteonlinetoolkits,thexerteproject/xerteonlinetoolkits