Handle 404 and redirect to index