title: Server error 500 when adding .htaccess file in the root folder
body: <p>I read a lot of server error 500 questions related to the famous .htaccess file...but I have still not found an answer to this error.</p>
  
  <p>I have a folder which i used to test the .htaccess file.</p>
  
  <p>=><code>http://localhost/xampp/example/</code></p>
  
  <p>I copied the .htaccess in the example folder and I get server error 500</p>
  
  <p>I checked in my error.log file and found this: <code>.htaccess RewriteEngine not allowed here</code></p>
  
  <p>But I changed all <code>AllowOverride None</code> to <code>AllowOverride All</code> in my httpd.conf file I also uncommented the line <code>LoadModule expires_module modules/mod_expires.so</code></p>
  
  <p>error log says: <code>ExpiresActive not allowed here</code></p>
  
  <p>what is actually happening??...how can I resolve this error??</p>
  
  <p>This is what I have in my .htaccess file now...</p>
  
  <pre><code>&lt;ifModule mod_expires.c&gt;
  ExpiresActive On
  ExpiresDefault "access plus 1 days"
  &lt;/ifModule&gt;
  </code></pre>