title: Rewriting URL with PHP and htaccess
body: <p>I'm trying to rewrite some URLs, but am not sure how to do what I need. I am having a hard time finding answers online as well, because it's not just a simple re-write, and I don't know the term to search for.</p>
  
  <p>So I could use some help trying to do this, and would like to know if there is a term that is used for this type of thing.</p>
  
  <p>Basically I want to turn this:</p>
  
  <p><code>http://www.domain.com/search.php?search_type=news&amp;searchterms=2012-04-23</code></p>
  
  <p>into this</p>
  
  <p><code>http://www.domain.com/search/news/2012-04-23</code></p>
  
  <p>But have the search.php script still work the same and get the variables that it needs.</p>