fix 404 to do proper redirects