title: URL rewriting in Yii2 not working
body: <p>I am using Yii2 Advanced application and how can I convert this URL</p>
  
  <p><a href="http://192.168.1.190/qjyii2/yii2dev3/frontend/web/index.php?r=site/login" rel="nofollow">http://192.168.1.190/qjyii2/yii2dev3/frontend/web/index.php?r=site/login</a></p>
  
  <p>to</p>
  
  <p><a href="http://192.168.1.190/qjyii2/yii2dev3/frontend/web/site/login.php" rel="nofollow">http://192.168.1.190/qjyii2/yii2dev3/frontend/web/site/login.php</a>\</p>
  
  <p>I used the .htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine On
  RewriteRule ^qjyii2/yii2dev3/frontend/web/([^/]*)\.php$ /qjyii2/yii2dev3/frontend/web/index.php?r=site/$1 [L,NC,QSA]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>And the following Yii setup in frontend/config/main.php</p>
  
  <pre><code>'urlManager' =&gt; [
          'enablePrettyUrl' =&gt; true, 
          'showScriptName' =&gt; false, // Remove index.php from url
          'suffix' =&gt; '.php', // Add suffix to all routes (globally)
      ],
  </code></pre>
  
  <p>And, this didn't work </p>