title: Yii 2.0 hiding /basic/web from the URL along with the index.php
body: <p>Plenty of information around the net on how to hide the index.php from your Yii 2.0 application URL, however, what I'm trying to do here is to also remove the '/basic/web/' from the URL. /basic/web is the directory from which the application is running and the configuration that I have so far is the following. That goes into the config file:</p>
  
  <pre><code>'urlManager' =&gt;[
              'enablePrettyUrl' =&gt; true,
              'showScriptName' =&gt; false,
          ],
  </code></pre>
  
  <p>And this is my htaccess file that I have within the /web folder:</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule . index.php
  </code></pre>
  
  <p>So far, so good, I can access something directly calling <code>mysite.com/basic/web/controller/action</code>. What do I need to do though to remove the /basic/web so that the URL becomes just simple <code>mysite.com/controller/action</code>?</p>
  
  <p>Any tips welcome, thanks!</p>
  
  <p>EDIT: I'm looking for a way without touching the apache configuration file as I don't have access to it.</p>