title: How to make a 301 redirect in Zend Frameork 2?
body: <p>I need to make a redirect like this in ZF2:</p>
  
  <pre><code>redirect 301 /something /anotherway
  </code></pre>
  
  <p>I already have tried this on my <code>.htaccess</code> file, but that doesn't work in ZF2.</p>
  
  <p>How can I do it? Thanks</p>
  
  <p>Edited:</p>
  
  <p>I have a lot of old urls to redirect of the old site on htaccess... Examples:</p>
  
  <pre><code>redirect 301 /something /anotherway
  redirect 301 /something2 /anotherway2
  redirect 301 /something3 /anotherway3
  redirect 301 /something4 /anotherway4
  redirect 301 /something5 /anotherway5
  redirect 301 /something6 /anotherway6
  </code></pre>
  
  <p>If i put this on my .htaccess with ZF2, it does erros to me... How can i do it in ZF2?</p>