title: .htaccess is not working in wamp
body: <p>Below is my .htaccess file which is not working locally(wamp)..</p>
  
  <pre><code>    Options +FollowSymLinks -MultiViews
      RewriteEngine On
  
      RewriteRule ^[a-zA-Z0-9]{40}$ search.php?hash=$1
  
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /(.*)index($|\ |\?)
      RewriteRule ^ /%1 [R=301,L]
  
      RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.php [NC]
      RewriteRule ^ %1 [R,L,NC]
  
      RewriteCond %{REQUEST_FILENAME}.php -f
      RewriteRule ^ %{REQUEST_URI}.php [L]
  
      ErrorDocument 404 /pivr/error.php
  
      &lt;Files .htaccess&gt;
      order allow,deny
      deny from all
      &lt;/Files&gt; 
  </code></pre>
  
  <p>Apache Error log says..</p>
  
  <pre><code>[Wed Aug 17 21:00:33.766183 2016] [core:alert] [pid 5780:tid 900] [client      ::1:50180] C:/wamp/www/search/.htaccess: Invalid command 'RewriteEngine',     perhaps misspelled or defined by a module not included in the server configuration
  </code></pre>
  
  <p>I keep getting <code>500 internal Server error</code> how to fix it?</p>