correct Error404 and redirect snippet