title: How to hide file extension(html)?
body: <p>i had tried to hide the file extension using htaccess but failed.
  this is the code on my .htaccess file</p>
  
  <pre><code>RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\ (INSERT FILE EXTENSION) -f
  RewriteRule ^(.*)$ $1 (INSERT FILE EXTENSION)
  </code></pre>
  
  <p>and in my html file the code is :</p>
  
  <pre><code>&lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
  &lt;meta charset="ISO-8859-1"&gt;
  &lt;/head&gt;
  &lt;body&gt;
  &lt;h1&gt;This is profile&lt;/h1&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>when i accessing the webpage without the extension i got this error
  <a href="https://i.stack.imgur.com/bsPqJ.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/bsPqJ.jpg" alt="error from browser"></a></p>
  
  <p><a href="https://i.stack.imgur.com/hQ4OS.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hQ4OS.jpg" alt="folder"></a></p>