title: How do I make a rewrite rule in php?
body: <pre><code>RewriteEngine on
  Rewriterule ^(.*).htm $1.php
  </code></pre>
  
  <p>This works fine when i try to access every php page</p>
  
  <p>But how could i make it <code>RewriteRule ^/somepage $ /somepage.php</code> (its not working )</p>
  
  <p>if the page is about.php the url should be about/ (directory type)</p>