only redirect to new page if HTTP_ACCEPT contains html