title: Is it possible to use mod_rewrite htaccess to rewrite a url from name to id.
body: <p>If I have a URL<code>http://www.domain.com/listing.php?company_id=1</code>  is it possible for me to re-write that to <code>http://www.domain.com/company-name</code> by using that id to pull the name from the database.  </p>
  
  <p>Or do I have to change listing.php to make it <code>?company_name=company-name</code>  </p>
  
  <p>If anyone can point me in the right direction that would be great. </p>
  
  <p>Thanks!</p>