server error redirects to index.html page