title: SEO friendly url in yii 1.1
body: <p>i want only SanphamController to have from this: </p>
  
  <p>mySite/sanpham/chitiet/slug/nuoc-hoa-phap-vuiton.html</p>
  
  <p>to </p>
  
  <p>mySite/nuoc-hoa-phap-vuiton.html</p>
  
  <p>i have dealed it but all other Controller (CartController,etc,..) in my site not run anymore, it think the controller is an item in SanPhamController.</p>
  
  <p>This is my code</p>
  
  <p>.htaccess:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . index.php
  </code></pre>
  
  <p>In main/config.php:</p>
  
  <pre><code>'urlManager' =&gt; array(
          'rules' =&gt; array(
              '/'=&gt;'site/index',
              '&lt;view:(gioi-thieu|huong-dan|hinh-thuc-thanh-toan|dieu-khoan-dich-vu|chinh-sach-dich-vu)&gt;' =&gt; 'site/page',
              '&lt;action:(lienhe|thanhtoan|dangnhap|dangky|dangxuat)&gt;' =&gt; 'site/&lt;action&gt;',
              'danh-muc/&lt;slug:.*&gt;'=&gt;'sanpham/danhmuc',
              'thuong-hieu/&lt;slug:.*&gt;'=&gt;'sanpham/thuonghieu',
              'tim-kiem/&lt;slug:.*&gt;'=&gt;'sanpham/timkiem',
              '&lt;slug:.*&gt;' =&gt; 'sanpham/chitiet',
              '&lt;controller:\w+&gt;/&lt;id:\d+&gt;' =&gt; '&lt;controller&gt;/chitiet',
              '&lt;controller:\w+&gt;/&lt;action:\w+&gt;/&lt;id:\d+&gt;' =&gt; '&lt;controller&gt;/&lt;action&gt;',
              '&lt;controller:\w+&gt;/&lt;action:\w+&gt;' =&gt; '&lt;controller&gt;/&lt;action&gt;',
          ),
          'urlFormat' =&gt; 'path',
          'urlSuffix' =&gt; '.html',
          'showScriptName' =&gt; false,
  ),
  </code></pre>