Fix bug 33824 by checking for root folder URI and setting special case headers for such a case