I have a bit of a strange request in that I am trying to use a proxy.pac file to use a proxy server for the following:
www.domain.com
www.domain.xx.xx
www.domain.com/?foo=1&bar=1 (where foo/bar can be any querystring)
but not:
www.domain.com/folder/
subdom.domain.com
I have tried the following but it did not appear to work when testing:
function FindProxyForURL(url, host) {
if (shExpMatch(url, "www.domain.*/?*")) return "PROXY 1.2.3.4:1234";
return "DIRECT";
}