Uri parsing modified to fit enviroments with directly set root folder (no initial rewrite)