title: Remove file name and extension from a URL
body: <p>I would like to know how to remove finename and extension from a URL using .htaccess file.</p>
  
  <p>These are the URL's</p>
  
  <pre><code>/post.php?id=1&amp;title=test-title
  /user.php?id=1&amp;name=username
  /about.php
  </code></pre>
  
  <p>I don't want to remove the file name from about,php </p>
  
  <p>So i want the output to be like below</p>
  
  <pre><code>/1-test-title
  /1-username
  /about
  </code></pre>
  
  <p>Can someone point me out the best way to do this?</p>