title: Ubuntu 12.04 AllowOverride All throws Internal Server Error
body: <p>I just created my server and I need to use .htaccess files, one of them worked and another one didn't... Apparently for .htaccess to work you need to enable AllowOverride, and so I did under: <code>/etc/apache2/sites-available/default</code> Changed this: </p>
  
  <pre><code>&lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride None
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>To this: </p>
  
  <pre><code>&lt;Directory /var/www/&gt;
      Options Indexes FollowSymLinks MultiViews
      AllowOverride All
      Order allow,deny
      allow from all
  &lt;/Directory&gt;
  </code></pre>
  
  <p>When I restart apache my whole site now throws error <code>500 Internal Server Error</code></p>
  
  <p>My .htaccess file contains this: </p>
  
  <pre><code>RewriteEngine on
  
  # if a directory or a file exists, use it directly
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  
  # otherwise forward it to index.php
  RewriteRule . index.php
  </code></pre>
  
  <p>Anyone has any idea why? </p>