title: How to change my URL structure on dynamic selection ID which is retrieving from database
body: <p>I want to change my URL structure, Instead of showing ID it should show full name and remove .php from end.</p>
  
  <pre><code>http://example.com/index.php?catid=5
  </code></pre>
  
  <p>This should convert into </p>
  
  <pre><code>http://example.com/MDM
  </code></pre>
  
  <p>Here <strong>MDM</strong> is category name which is retriving from database.</p>
  
  <p>Is there any help I can get on this.</p>