title: Mod_Rewrite .Htaccess
body: <p>I have a problem which I could not find during my online search.</p>
  
  <p>I have successfully made a wildcard sub-domain and any sub domain to the main domain points to the folder.</p>
  
  <p>I am looking to create link URI to Parameters like</p>
  
  <p>1- .domain.com/location/locationname
  to
  2- .domain.com//location.php? locname=</p>
  
  <p>and then </p>
  
  <p>1- .domain.com/location/locationname/category/categoryname/item/itemname
  to
  2- .domain.com//orderitem.php?locname=locationname&amp;ordercategory=categoryname&amp;orderitem=itemname</p>
  
  <p>(2) is happening in the backend and user still sees (1)</p>
  
  <p>How will it work? Do I have to make table in MySQL, which I am not sure how it will go around.
  Second is to explode the URL and link to specific URL like orderloc or ordermenu or orderitem etc.</p>
  
  <p>Any help will be a step closer.</p>
  
  <p>Thanks</p>