handle permanent redirects