title: How to hide page name and extention from url using .htaccess
body: <p>I want to hide all my page names and extension from url, </p>
  
  <pre><code>htt://www.domain.com/innerpage.php
  to
  http://www.domain.com/
  </code></pre>
  
  <p>and</p>
  
  <pre><code>http://www.domain.com/subfolder/innerpage.php
  to
  http://www.domain.com/subfolder/
  </code></pre>
  
  <p>and</p>
  
  <pre><code>http://www.domain.com/subfolder/subfolder/innerpage.php
  to
  http://www.domain.com/subfolder/subfolder/
  </code></pre>
  
  <p>I used like</p>
  
  <pre><code>RewriteEngine On
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_URI} !\..+$
  RewriteCond %{REQUEST_URI} !/$
  RewriteRule ^(.*)$ http://www.domain.com/$1/ [R=301,L]
  RewriteRule ^(.*)$ http://www.domain.com/subfolder/$1/ [R=301,L]
  RewriteRule ^(.*)$ http://www.domain.com/subfolder/subfolder/$1/ [R=301,L]
  RewriteRule ^(.*)/$ $1.php [L]
  </code></pre>
  
  <p>its not work</p>