title: .htaccess Hide File Extension Not Working (WampServer)
body: <p>I am having some trouble hiding the <code>.html</code> extensions on my website.
  I am running on WampServer with Apache V.2.2.22.
  <code>rewrite_module</code> is active and i have changed the <code>httpd.conf</code> file to have <code>AllowOverride all</code></p>
  
  <p>This is the only htaccess file that i know of and this is all it contains...</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
  RewriteRule ^ %1 [R=301,L,NC]
  &lt;/IfModule&gt;
  </code></pre>
  
  <p>Its not working and i don't know why... here is my <code>httpd.conf</code> file</p>
  
  <pre><code>DocumentRoot "c:/wamp/www/"
  
  &lt;Directory /&gt;
      Options FollowSymLinks
      AllowOverride all
      Order deny,allow
      Deny from all
  &lt;/Directory&gt;
  
  &lt;Directory "c:/wamp/www/"&gt;
      Options Indexes FollowSymLinks
      AllowOverride all
  
  #   onlineoffline tag - don't remove
      Order Allow,Deny
      Allow from all
  
  &lt;/Directory&gt;
  </code></pre>
  
  <p>and this is where i have placed the <code>.htaccess</code> file...</p>
  
  <pre><code>E:\wamp\www\DesktopVersion\.htaccess
  </code></pre>
  
  <p>Any suggestions as to why this is not working would be great!</p>
  
  <p>EDIT: Just to clarify This is the correct .htaccess code to use...
  Complement of 'anubhava'</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,}\s([^.]+)\.html [NC]
  RewriteRule ^ %1 [R=301,L]
  
  RewriteCond %{REQUEST_FILENAME}.html -f
  RewriteRule ^ %{REQUEST_URI}.html [L]
  &lt;/IfModule&gt;
  </code></pre>