title: Url manager and Htaccess in Yii1
body: <p>I have url like this:</p>
  
  <blockquote>
    <p>www.studyenglish/index.php?r=site/lesson&amp;act=read&amp;id=1</p>
  </blockquote>
  
  <p>I would like change to be:</p>
  
  <blockquote>
    <p>www.studyenglish/site/lesson/read</p>
  </blockquote>
  
  <p>I have added this script in url manager config/main.php </p>
  
  <pre><code>'urlManager'=&gt;array(
         ....
         'showScriptName'=&gt;false,
          ....
      ),
  </code></pre>
  
  <p>and add this script in .htaccess</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine on
  RewriteBase /
  
  # if a directory or a file exists, use it directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # otherwise forward it to index.php
  RewriteRule . index.php
  </code></pre>
  
  <p>But it only work in url like this:</p>
  
  <blockquote>
    <p>www.studyenglish/index.php?r=site/lesson</p>
  </blockquote>
  
  <p>to be:</p>
  
  <blockquote>
    <p>www.studyenglish/site/lesson</p>
  </blockquote>
  
  <p>So, how to change this url </p>
  
  <blockquote>
    <p>www.studyenglish/index.php?r=site/lesson&amp;act=read&amp;id=1</p>
  </blockquote>
  
  <p>to be</p>
  
  <blockquote>
    <p>www.studyenglish/site/lesson/read</p>
  </blockquote>
  
  <p>Hopefully someone can help.
  Thanks ...</p>