title: How to hide .html extension from the website url
body: <p>I know this question has been asked before but does anyone know of a good way to hide .html extensions. I've tried many of codes &amp; many of the answers from the <a href="https://stackoverflow.com/">https://stackoverflow.com/</a> but am not seeing the result. Thats y I ask u again</p>
  
  <p>I've a static website and I wanted to remove the extension to clean my urls. I was working with static html files.</p>
  
  <p>Prior to removing the extension, the url would read <code>website.com/about.html</code>.</p>
  
  <p>With the extension removed, it would look like website.com/about. Hope that was clear.</p>
  
  <p>I've a .htaccess file and I tried many of the codes but it dosen't work. Here are some codes </p>
  
  <pre><code>RewriteEngine On
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)\.html$ /$1 [L,R=301] 
  
  
  
  RewriteCond %{THE_REQUEST} \ /(.+/)?index(\.html)?(\?.*)?\  [NC]
  RewriteRule ^(.+/)?index(\.html)?$ /%1 [R=301,L]
  
  RewriteCond %{ENV:REDIRECT_STATUS} ^$
  RewriteRule ^(.+)\.html$ /$1 [R=301,L]
  
  RewriteCond %{SCRIPT_FILENAME}.html -f
  RewriteRule [^/]$ %{REQUEST_URI}.html [QSA,L]
  
  
  
  RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.html\ HTTP/
  RewriteRule ^index\.html$ http://%{HTTP_HOST}/ [R=301,L]
  
  
  
  RewriteEngine On
  RewriteBase /
  RewriteCond %{SCRIPT_FILENAME} !-f
  RewriteCond %{SCRIPT_FILENAME} !-d
  RewriteRule ^(.*)$ $1.html [NC,L]
  
  
  
  RewriteEngine on
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteCond %{REQUEST_FILENAME}\.html -f
  RewriteRule ^(.*)$ $1.html
  
  
  RewriteBase /
  RewriteEngine on
  RewriteRule ^(.*)\.htm$ $1.html [nc]
  
  
  RewriteCond %{REQUEST_FILENAME}.html -f
  RewriteRule !.*\.html$ %{REQUEST_FILENAME}.html [L]
  </code></pre>
  
  <p>however I am not seeing any results...:( </p>