title: Angular and symfony in one dir - htaccess
body: <p>I have following problem, I have in folder <strong>/var/www/html</strong> 2 dirs: <code>app (angular application)</code> and <code>api(restful api and cms written in symfony3)</code>. In both directories there is appropriate <strong>htaccess</strong> for each application.
  The document root is <strong>/var/www/html</strong> and I need the website to be redirected to <strong>app/index.html</strong>, and only <code>/api/</code> to api subfolder.
  But I can't get this working with symfony htaccess.</p>
  
  <p>Angular htaccess is default provided.
  Symfony htaccess:</p>
  
  <pre><code>DirectoryIndex app.php
  &lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteCond %{REQUEST_FILENAME} -f
      RewriteRule ^ - [L]
      RewriteCond %{HTTP:Authorization} ^(.*)
      RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
  
      RewriteRule ^bundles/(.*)$ /web/bundles/$1 [L]
      RewriteRule ^uploads/(.*)$ /web/uploads/$1 [L]
      RewriteRule ^assetic/(.*)$ /web/assetic/$1 [L]
      RewriteRule ^assets/(.*)$ /web/assets/$1 [L]
      RewriteRule ^js/(.*)$ /web/js/$1 [L]
      RewriteRule ^assets/(.*)$ /web/assets/$1 [L]
      RewriteRule ^backend/fonts/(.*)$ /web/backend/fonts/$1 [L]
      RewriteRule ^backend/img/(.*)$ /web/backend/img/$1 [L]
      RewriteRule ^fonts/(.*)$ /web/fonts/$1 [L]
      RewriteRule ^thumbs/(.*)$ /web/thumbs/$1 [L]
      RewriteRule ^ %{ENV:BASE}/web/app.php [L]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Any idea how to get this done?</p>