title: CakePHP redirect routing
body: <p>In my CakePHP 2.3 application, I want <code>example.com/come/Harry</code> to redirect <code>example.com/myworks/people/Harry</code>.</p>
  
  <p>This works, but this connects.</p>
  
  <pre><code>Router::connect ('/come/:myname',
      array('controller' =&gt; 'myworks', 'action' =&gt; 'people'),
      array(
          'pass' =&gt; array('myname')
      )
  );
  </code></pre>
  
  <p>I need a 301 redirection. I tried this:</p>
  
  <pre><code>Router::redirect ('/come/:myname',
      array('controller' =&gt; 'myworks', 'action' =&gt; 'people'),
      array(
          'pass' =&gt; array('myname')
      )
  );
  </code></pre>
  
  <p>But it redirected to <code>example.com/myworks/people/</code>. How can I pass argument to my action while redirecting ?</p>