title: rewrite multiple parameters .htaccess
body: <p>i need to rewrite www.sample.com/user/john/ to www.sample.com/user/?u=john</p>
  
  <p>this code works only if i leave out the trailing / "www.sample.com/user/john" how do i get it to work like "www.sample.com/user/john/" as well?</p>
  
  <blockquote>
    <p>RewriteRule ^([A-Za-z0-9_]+)$ index.cfm?u=$1 [L]</p>
  </blockquote>
  
  <p>now i would need it to function a step further </p>
  
  <p>www.sample.com/user/john/23564/ to rewrite like "www.sample.com/user/?u=john&amp;i=23564"</p>
  
  <p>one thing "www.sample.com/user/john" should still word even w/o the/23564/</p>
  
  <p>thanks</p>