The example will be more helpful than my title
Let´s suppose I have this Url
https://www.mycompany.com/proxy/12345/https://www.google.es/subpath/?query