redirecting to indexhtml in case of a post