The proxy just takes a URL and accesses it. It doesn't do anything to change the URL.
If you're referring to the proxy.php URL itself, that is accessed via a relative link, so it's based entirely on the base tag on the page (which is based on the URL accessed).
We'll need a demonstration of the issue.