title: How to remove controller name in URL of codeigniter and need to add menu and submenu as URL name
body: <p>I need to remove controller name from URL of codeigniter, for example:</p>
  
  <pre><code>www.example.com/controllername/functionname
  www.example.com/welcome/aboutus
  www.example.com/welcome/ourservices
  </code></pre>
  
  <p>I need URL as:</p>
  
  <pre><code>www.example.com/functionname
  www.example.com/aboutus
  www.example.com/ourservices
  </code></pre>
  
  <p>Then also i need to have sub menu for our services that URL should look like:</p>
  
  <pre><code>www.example.com/welcome/our services/service1
  www.example.com/welcome/our services/service2
  </code></pre>
  
  <p>How to achieve this routing in codeigniter?</p>