title: Remove unwanted URL segments in Codeigniter site_url
body: <p>On the page whose URL is "abc.com/en/login/create_member" using site_url('login') produces a link to "abc.com/en/login/create_member", but the desired URL is "abc.com/en/login/"</p>
  
  <p>I've included the link code and an excerpt from my routes.php file</p>
  
  <p>Thanks in advance for any help on this.</p>
  
  <p>Code: </p>
  
  <pre><code>&lt;a class="link_grad_button" href="&lt;?php site_url('login'); ?&gt;"&gt;Login&lt;/a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>Route Excerpt:</p>
  
  <pre><code>$route[$prepended_lang.'login/(:any)'] = 'login/$1';
  // URI like '/en/about' -&gt; use controller 'about'
  $route['^(en|br)/(.+)$'] = "$2";
  $route['default_controller'] = 'landing';
  // '/en', '/de', '/fr' and '/nl' URIs -&gt; use default controller
  $route['^(en|br)$'] = $route['default_controller']; 
  </code></pre>