title: Symfony redirect to external URL
body: <p>How can I redirect to an external URL within a symfony action?</p>
  
  <p>I tried this options :</p>
  
  <pre><code>1- return $this-&gt;redirect("www.example.com");
  </code></pre>
  
  <p>Error : No route found for "GET /www.example.com"</p>
  
  <pre><code>2- $this-&gt;redirect("www.example.com");
  </code></pre>
  
  <p>Error : The controller must return a response (null given).</p>
  
  <pre><code>3- $response = new Response();
  $response-&gt;headers-&gt;set("Location","www.example.com");
  return $response
  </code></pre>
  
  <p>No Error but blank page !</p>