title: How do I remove the "/web" from my URL?
body: <p>I am using the crud-admin-generator (<a href="http://crud-admin-generator.com/" rel="nofollow">http://crud-admin-generator.com/</a>) to generate a quick backend for my web app, which is based on the silex framework.</p>
  
  <p>My app structure is:</p>
  
  <pre><code>MyApp
    -&gt;index.php
    -&gt;some_other_files
    -&gt;...
    -&gt;admin (the crud-admin-generator git clone)
        -&gt;gen
        -&gt;src
        -&gt;vendor
        -&gt;web
           -&gt;controllers
           -&gt;resources
           -&gt;views
  </code></pre>
  
  <p>1) When I access the admin I currently need to use <code>http://localhost/MyApp/admin/web</code>. I want to remove the <code>/web</code> part.
  I tried creating a custom <code>htaccess</code> in the <code>admin</code> folder with:</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      Options -MultiViews    
      RewriteEngine On
      RewriteBase /web
      RewriteCond %{REQUEST_FILENAME} !-f
      RewriteRule ^ index.php [QSA,L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>But I keep getting an error: <code>The requested URL /web/index.php was not found on this server.</code></p>
  
  <p>2) The generated admin panel uses the silex framework, is there a easy way for me to use the doctrine component or the framework itself for my frontend as well (files outside the admin folder)? Would I need to manually change the routing paths of all the generated admin files? Sorry if I sound confused.</p>