title: RewriteRule to get two variables?
body: <p>In my public_html I have a <em>profile.php</em> file and some links in this format<br></p>
  
  <pre><code>domain.com/shop/index.php?c=amazon&amp;id=2
  </code></pre>
  
  <p>that lead to the amazon shop with category id 2</p>
  
  <p>In a folder inside public_html, named <em>shop</em> I have <em>index.php</em> that shows the products of the 2 category.</p>
  
  <p>However instead of the above ugly link I want to have something in the format of</p>
  
  <pre><code>domain.com/shop/company/category-id
  e.g. domain.com/shop/amazon/2
  </code></pre>
  
  <p>I don't want to have <em>profile.php</em> and <em>shop.php</em> in the same folder because I have another RewriteRule in there.</p>
  
  <p>What is the RewriteRule I have to use in this case of two variables? Thank you</p>