title: Htaccess to rewrite url for an existing php app
body: <p>I have developed a PHP application and I want to rewrite the URLs to make it cleaner,
  I have multiple pages, each page can have 0 or multiple GET variables,</p>
  <p>Example of what I want to achieve:</p>
  <p>index.php   -&gt;   /</p>
  <p>/index.php?var1=aaa&amp;var2=bbb&amp;var3=ccc   -&gt;   /var1/aaa/var2/bbb/var3/ccc</p>
  <p>/product.php?var4=ddd&amp;var5=eee   -&gt;   /product/var4/ddd/var5/eee</p>
  <p>/products-list.php   -&gt;   /products-list/</p>
  <p>etc...</p>
  <p>Can anyone help me with a full .htaccess file to achieve this result?
  And is there a way to make the PHP read the GET params or do I need to add a function to create a $_GET array from the URL on each page?</p>
  <p>Thank you.</p>