For example, if I have a resource with the ID https://repo.metadatacenter.net/templates/12131 and try to retrieve that resource directly via its IRI (with authentication) the call should get seamlessly redirected to the new repo.metadatacenter.org route and return the representation of the resource.
We can't return a 301 because that resource has NOT moved.
We should rewrite (via Nginx, presumably) it to something like:
For example, if I have a resource with the ID
https://repo.metadatacenter.net/templates/12131
and try to retrieve that resource directly via its IRI (with authentication) the call should get seamlessly redirected to the newrepo.metadatacenter.org
route and return the representation of the resource.We can't return a 301 because that resource has NOT moved.
We should rewrite (via Nginx, presumably) it to something like:
https://repo.metadatacenter.ORG?resource=URLENCODE(https://repo.metadatacenter.net/templates/12131)