title: Clean url for SEO in Codeigniter
body: <p>How to remove the controller/method for cleaner URL in codeIgniter.</p>
  
  <p>The original url is below</p>
  
  <pre><code>www.mydomain.com/controllers/method/variable
  </code></pre>
  
  <p>and I want my url look like this</p>
  
  <pre><code>www.mydomain.com/variable
  </code></pre>
  
  <p>or</p>
  
  <pre><code>www.mydomain.com/friendly-url-description/5
  </code></pre>
  
  <p>where <code>5</code> is key or id of the table, and the friendly-url-description is description of the value. please help guys.</p>