I am using CURL to check for the existence of a URL (HEAD request) but when I test it with www.google.com, it redirects me to www.google.co.uk - probab
www.google.com
www.google.co.uk
You should turn off the follow location from curl (set it to false) and you won't be redirected anymore ...
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, false);