title: url rewriting index.php
body: <p>i have urls like</p>
  
  <pre><code>http://mysite.com/index.php?p=resources
  http://mysite.com/index.php?p=resources&amp;s=view&amp;id=938
  </code></pre>
  
  <p>but i want urls like</p>
  
  <pre><code>http://mysite.com/resources
  http://mysite.com/resources/view/938
  </code></pre>
  
  <p>instead of making hundreds of rewrite rules i wonder if it would be possible to just have one? Ive head this is possible by "getting the uri and splitting it into parts" and then just add a rewrite rule for index.php</p>
  
  <p>but how? could someone give an example or link a tutorial</p>