title: what is the difference between response.redirect and response status 301 redirects in asp?
body: <p>Our ASP application is moving to a new server and I want to implement a permanent URL redirection. I am aware of the following two approaches, but I need to understand which one to use and when.</p>
  
  <p>Option 1:</p>
  
  <pre><code>&lt;%@ Language=VBScript %&gt;&lt;% Response.Redirect "http://www.example.com" %&gt;
  </code></pre>
  
  <p>Option 2:</p>
  
  <pre><code>&lt;%@ Language=VBScript %&gt;&lt;% Response.Status="301 Moved Permanently" 
    Response.AddHeader "Location","http://www.example.com/" %&gt;
  </code></pre>
  
  <p>Thanks,</p>
  
  <p>Nikhil.</p>