title: .htaccess rewriting url to a friendly format doesn't work
body: <p>I have tried so many codes from here and also googled a lot but none of them are working for me. I simply need to change <code>http://www.domain.com/index.php?id=5</code> to <code>http://www.domain.com/index.php/5</code>
  I know this has been asked many times but all the code I try doesn't work.</p>
  
  <pre><code>RewriteEngine On
  RewriteBase /
  RewriteRule ^/?index.php/([\d.a-zA-Z]*)$ /index.php?id=$1 [QSA,L]
  </code></pre>