title: Symfony2 simple .htaccess password protect for dev purpose
body: <p>I would like to use a <code>.htaccess</code> file to protect my symfony2 website while developing it. </p>
  
  <p>I added the following line at the beginning of my <code>.htaccess</code> located in <code>/web</code> and a <code>.htpasswd</code> file just next with my password.</p>
  
  <pre><code>AuthName "Développement"
  AuthType Basic
  AuthUserFile ".htpasswd"
  Require valid-user
  </code></pre>
  
  <p>I have a Error 500 when I try to access my website. Is it possible to use a htaccess in my case ? What should I use if it is not posible ?</p>