title: URL rewrite multiple rules
body: <p>I have spent some time learning how to do rewrites and have had success with it but cannot seem to get past this. I have a site that will have a url like www.domain.com/bystate.php?s=Massachusetts that I want to change to www.domain.com/Massachusetts, I did this with the following rule.</p>
  
  <p>RewriteRule ^([a-zA-Z-/]+)$ bystate.php?s=$1</p>
  
  <p>Now the probles is once in that page the user chooses a city and needs to be directed to www.domain.com/Massachusetts/west-newburyport</p>
  
  <p>I have been trying to get this to work but it seems to stop at the first rul because it meets the conditions. I tried putting the second rule on top of the first and it didnt work. I also tried adding in a word 'directory' to try and get this to work, again nothing.</p>
  
  <p>What am I doing wrong? Heres where I am.</p>
  
  <p>RewriteRule ^([a-zA-Z-/]+)$ bystate.php?s=$1
  RewriteRule ^([a-zA-Z-/]+)/([a-zA-Z-/]+)$ bycity.php?s=$1&amp;c=$2</p>