title: yii - urlManager : how redirect route to pattern
body: <p>I've got urlManager rules:</p>
  
  <pre><code>...
  '/&lt;slug:(nasha-glavnaya-zagolovok)&gt;' =&gt; 'page/page/show',
  '/pages/&lt;slug&gt;' =&gt; 'page/page/show',
  ...
  </code></pre>
  
  <p>all fine.
  When I enter to address</p>
  
  <pre><code>/nasha-glavnaya-zagolovok
  </code></pre>
  
  <p>it opens the page i need
  But if I try to open page </p>
  
  <pre><code>/pages/nasha-glavnaya-zagolovok
  </code></pre>
  
  <p>it also opens the page I need</p>
  
  <p>But content of pages are same.</p>
  
  <p>How i can redirect (with 301 header) from <strong>route</strong> to <strong>pattern</strong> if any rule in urlManager mathced?</p>