title: how to redirect. old url to new url. [Laravel, htacces]
body: <p>how to redirect old url to new url.</p>
  <blockquote>
  <h3>old url: <code>http://www.example.com/main.php?id=111</code></h3>
  <h3>new url: <code>http://www.example.com/n/111</code></h3>
  </blockquote>
  <p>my solution is: in routes.php</p>
  <pre><code>Route::get('/main.php?id={id}', array('uses' =&gt; 'App\Controllers\Front\PageController@oldToNew'));
  </code></pre>
  <p>in action:</p>
  <pre><code>public function oldToNew($id)
  {
  return Redirect::to('http://www.example.com/n/'.$id);
  } 
  </code></pre>
  <p>but this code wont work. pls help.</p>