title: Symfony2 : redirect localhost/app_dev.php to localhost/
body: <p>I am developping a website/web-app locally, which includes many ajax calls etc... 
  My problem is everytime I have to include app_dev.php to the url - so when I go on prod I'll need to search and replace these urls..</p>
  
  <p>Is there a way via apache to hide app_dev.php ? I read many questions on that one but no solution worked for me.</p>
  
  <p>What I already did was adding this:</p>
  
  <pre><code>&lt;VirtualHost *:80&gt;
      ServerAdmin webmaster@dummy-host.example.com
      DocumentRoot "C:/wamp/www/web"
      DirectoryIndex app_dev.php
      ServerName dummy-host.example.com
      ServerAlias localhost
      ErrorLog "logs/dummy-host.example.com-error.log"
      CustomLog "logs/dummy-host.example.com-access.log" common
      &lt;Directory "C:/wamp/www/web"&gt;
          AllowOverride All
          Allow from All
      &lt;/Directory&gt;
  &lt;/VirtualHost&gt;
  </code></pre>
  
  <p>to my httpd.conf but it is completely ignored...</p>
  
  <p>I am working with WAMP 2.2 </p>