title: .htaccess url rewriting help just first line works
body: <p>Please can someone help me with <code>.htaccess</code> solution as I can not work it out. </p>
  
  <p>I am trying to obtain nice urls using following:</p>
  
  <pre><code>RewriteEngine on
  RewriteRule ^([a-z]+)\.htm yellow.php?name=$1 [L]
  RewriteRule ^([a-z]+)\.htm blue.php?name=$1 [L]
  RewriteRule ^([a-z]+)\.htm green.php?name=$1 [L]
  </code></pre>
  
  <p>Unfortunately, only the first line works.</p>
  
  <p>If I try this - all works fine:</p>
  
  <pre><code>RewriteRule ^([a-z]+)\-yellow.htm yellow.php?name=$1 [L]
  RewriteRule ^([a-z]+)\-blue.htm blue.php?name=$1 [L]
  RewriteRule ^([a-z]+)\-green.htm green.php?name=$1 [L]
  </code></pre>
  
  <p>Ideally, I would like to have shorter URLs so <code>.htm</code>or just virtual folder style <code>/name/</code> would be great.</p>
  
  <p>thank you all in advance for your help (this is my first ever dynamic site and I learned a lot already from all of you here)</p>