(PE-5860) Ensure regex does not match entire URI

Ensure that regex only matches the beginning of a request URI
in the wrap-proxy function rather than the entire URI.