title: PageReference.setRedirect() is not working
body: <p>Hi i am trying to redirecting visualforce page to google.com page 
  here is my VF code</p>
  
  <pre><code>&lt;apex:page controller="google_redir"&gt;
    &lt;!-- Begin Default Content REMOVE THIS --&gt;
    &lt;h1&gt;Congratulations&lt;/h1&gt;
    This is your new Page
    &lt;!-- End Default Content REMOVE THIS --&gt;
    &lt;apex:form &gt;
    &lt;apex:commandButton action="{! hello1}"  value="Save New Account Value"/&gt;
    &lt;/apex:form&gt;
  &lt;/apex:page&gt;
  </code></pre>
  
  <p>and here is my apex controller code</p>
  
  <pre><code>public class google_redir{
  
  
  public PageReference hello1(){
  PageReference reference=new PageReference('http://www.google.com');
  reference.setRedirect(true);
  
  return reference;
  }
  }
  </code></pre>
  
  <p>page not redirected to google.com it shows a blank page.
  please help me in correcting the error where i am wrong why it is not redirecting to google.com page.</p>