Preserve port and user/pass info for path-based resources