Fixed RequestHandler.php to work even in subfolder of root