title: Symfony2: How to make web servers root page Symfony's index page
body: <p>I have multiple projects on my <strong>example.com</strong> server, similar to this:</p>
  
  <pre><code>project1/...
  project2/...
  symfony2/...
  </code></pre>
  
  <p>How can I make the root page - "example.com" redirect to <strong>symfony2/web/app_dev.php</strong> every time I run example.com?</p>
  
  <p>Basicaly, my question is how to fix the routing so that Symfony's index page is my web servers root page.</p>
  
  <p>I tried some .htaccess magic but it didn't work:</p>
  
  <pre><code>RewriteEngine on
  RewriteBase /
  
  RedirectMatch permanent ^/$ http://example.com/web/app_dev.php
  </code></pre>
  
  <p>This only redirects me to web/app_dev.php when I run example.com, but the URL is still there in the navigation bar.</p>
  
  <p>What I want is to see the web/app_dev.php open at example.com.</p>
  
  <p>I apologize if the question is vaguely formed.</p>