Redirect to external url adds external url to current url instead I'm using wampserver and I'm trying to redirect a visitor to an external url (which in turn will eventually send them back to another page on my drupal-site).

My site on wampserver is called localhost/testing and I use 

drupal_goto(www.example.com, array(
  'external' =&gt; TRUE,
  'absolute' =&gt; TRUE,
  ));


However, the url I get redirected to is localhost/testing/www.example.com instead of www.example.com
You need whole URL like http(s)://www.example.com