title: SEO friendly URLs (.htaccess)
body: <pre><code>http://www.domain.com/folder/file?x=1&amp;y=2
  </code></pre>
  
  <p>Change to:</p>
  
  <pre><code>http://www.domain.com/folder/file/1/2/
  </code></pre>
  
  <hr>
  
  <pre><code>http://www.domain.com/folder/?x=1
  </code></pre>
  
  <p>Change to:</p>
  
  <pre><code>http://www.domain.com/folder/1/
  </code></pre>
  
  <hr>
  
  <p>I tried:</p>
  
  <pre><code>Options +FollowSymLinks
  RewriteEngine On
  RewriteRule ^folder/(.*)/$ folder/index.php?x=$1 [L]
  RewriteRule ^folder/file/(.*)/(.*)/$ folder/file.php?x=$1&amp;y=$2 [L]
  </code></pre>
  
  <p>but that doesn't work, does anyone have any idea why?</p>
  
  <p>when i take out the first rule, i can access the second one via:</p>
  
  <pre><code>http://www.domain.com/folder/1/2/
  </code></pre>
  
  <p>but not:</p>
  
  <pre><code>http://www.domain.com/folder/file/1/2/
  </code></pre>
  
  <p>god, i hope i am not confusing anyone who is reading this lol i hope it makes sense</p>