Rewrite to match new URIs.