title: Dynamic URL rewriting in htaccess
body: <p>I've a url like :</p>
  
  <pre><code>http://localhost/project/gallery_detail.php?id=3
  </code></pre>
  
  <p>what I want here is : </p>
  
  <pre><code>http://localhost/project/USERNAME/3
  </code></pre>
  
  <p>What I'm trying is : </p>
  
  <pre><code>RewriteEngine 
  OnRewriteRule /(.*)/(.*)/$ gallery_detail.php?id=$1
  </code></pre>
  
  <p>and handling this to php file but didn't succeed. </p>