title: Yii2 URL Manager Rules
body: <p>I have problem with create pretty url with URLManager Rules in yii2.</p>
  
  <p>My SiteContoller have <code>actionProduct($slug)</code> and it generates url: <code>http://localhost/myweb/web/site/product?slug=new-product-name</code> and I would like create url like: <code>http://localhost/myweb/web/produkt/new-product-name</code>. </p>
  
  <p>I tried to use some rules:</p>
  
  <ul>
  <li><code>'site/product/&lt;slug:\w+&gt;' =&gt; 'produkt/&lt;slug:\w+&gt;',</code>   </li>
  <li><code>'&lt;controller:\w+&gt;/&lt;slug:[A-Za-z0-9 -_.]+&gt;' =&gt; 'produkt',</code>   </li>
  <li><code>'&lt;controller:site&gt;/&lt;action:product&gt;/&lt;slug:\w+&gt;' =&gt; 'produkt',</code></li>
  <li><code>'/site/product/&lt;slug:\w+&gt;' =&gt; 'produkt',</code></li>
  </ul>
  
  <p>but it's doesn't work.</p>