title: URL rewriting with PHP MySQL .htaccess & GET
body: <p>I have a MySQL database with 5000 items. The table is structured as </p>
  
  <p>id<br>
  product-name<br>
  content<br>
  product-url  </p>
  
  <p>You can access a specific product page by going to www.site.com/products/index.php?id=123. The index.php file uses PHP to GET the ID to search the MySQL database and return the appropriate product name and content. </p>
  
  <p>How can I make it so instead of www.site.com/products/index.php?id=123, the URL is rewritten or redirected to www.site.com/products/product-url? If I do it with .htaccess, will the index.php file still be able to know what ID to use to look up the product-url if the ID is not in the URL? Or is there some way to map URLs with PHP and MySQL?</p>
  
  <p>(I'm a noob when it comes to this stuff, so any help will be much appreciated. Thanks.)</p>