title: CodeIgniter URI Routing and empty segment
body: <p>I now set uri routing in my codeigniter config like this </p>
  
  <pre><code>$route['user/:any'] = "users";
  </code></pre>
  
  <p>and everything works fine with request like this </p>
  
  <pre><code>http://localhost/user/1
  </code></pre>
  
  <p>but if i try request</p>
  
  <pre><code>http://localhost/user/
  </code></pre>
  
  <p>so uri segment is empty, i am getting error</p>
  
  <pre><code>404 Page Not Found
  The page you requested was not found.
  </code></pre>
  
  <p>how to avoid this? I ve tried to use </p>
  
  <pre><code>$user = $this-&gt;uri-&gt;segment(2);
  if (!isset($user)) redirect('/', 'refresh');
  </code></pre>
  
  <p>but this is not working.</p>