title: Completely dynamic URLs in CodeIgniter
body: <p>I'm building an online store based on CodeIgniter. I'd like URLs to look like this?</p>
  
  <pre><code>http://example.com/[product-category]/[product-name]
  </code></pre>
  
  <p>The thing is there are also non-product pages like <code>/checkout/step-1</code> and these still have to work.
  What's the best way to achieve this?</p>