title: NGINX - Return 301 vs Rewrite
body: <p>I use <a href="http://nginx.org/" rel="noreferrer"><strong>NGINX</strong></a> in my dedicated server.</p>
  
  <p>I've a question about the <strong>return</strong> and <strong>rewrite 301</strong>.</p>
  
  <hr>
  
  <p><strong>Rewrite 301:</strong></p>
  
  <pre><code>rewrite ^ http://xxx.xxxxx.net/xx-xxx/$request_uri? permanent;
  </code></pre>
  
  <p><strong>Return 301:</strong></p>
  
  <pre><code>location ~ redirect-this/?$ {
      return 301 http://xxx.xxxxx.net/xx-xxx/redirect-this$1;
  }
  </code></pre>
  
  <hr>
  
  <p>All redirects work correctly. But..</p>
  
  <p><strong>Which is the most effective method to make a 301 redirect?</strong></p>
  
  <p>I've more than 200 url to redirect. So, what you recommend?</p>