Added redirects and 404 codes