Updating `proxy()` to limit rewrites when using a root path