title: 500 internal server error .htaccess: </files> without matching <files> section, referer: http://localhost/
body: <p>Hi i am  getting following error on my Apache error log file...and 500 internal server error help me to solve this ..</p>
  
  <pre><code>[Wed Mar 13 16:33:13 2013] [alert] [client 127.0.0.1] C:/wamp/www/phpwork/.htaccess: &lt;/files&gt; without matching &lt;files&gt; section, referer: http://localhost/
  </code></pre>
  
  <p>my .htaccess file is</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
     RewriteEngine on
     RewriteRule (.*\.(png|gif|jpg|jpeg|js|css|swf))$ webroot/img_handler.php?arg=$1 [L] 
     RewriteRule    ^$ webroot/    [L]
     RewriteRule    (.*) webroot/$1 [L]
  &lt;/IfModule&gt;
  
  # disable directory browsing -IMPORTANT, do NOT remove.
  Options -Indexes
  
  # protect the htaccess file
  &lt;files .htaccess&gt;
  order allow,deny
  deny from all
  &lt;/files&gt;
  
  # disable the server signature
  ServerSignature Off
  
  
  # protect php.ini
  #&lt;files *.ini&gt;
  order allow,deny
  deny from all
  &lt;/files&gt;
  </code></pre>