title: CodeIgniter Routing - 404 error
body: <p>I'm developping a website using CI and today I'm facing a problem in the admin part.</p>
  
  <p>I've an admin and I can manage users</p>
  
  <p>the structure of my application is:</p>
  
  <pre><code>controllers/admin/users.php
  </code></pre>
  
  <p>in users.php I've some functions: <code>index(), view($id), login(), edit($id)</code></p>
  
  <pre><code>views/admin/users/index.php
  views/admin/users/view.php
  views/admin/users/login.php
  views/admin/users/edit.php
  </code></pre>
  
  <p>to access the login page the url is:</p>
  
  <pre><code>www.mysite.com/admin/login
  </code></pre>
  
  <p>to access the list of users the url is:</p>
  
  <pre><code>www.mysite.com/admin/users
  </code></pre>
  
  <p>to view a specific user <code>(id=5)</code> the url is:
      <code>www.mysite.com/admin/users/5</code></p>
  
  <p>everything is working well except for the edit function, I got an url when I call    <code>www.mysite.com/admin/edit/5</code></p>
  
  <p>here are my routing rules:</p>
  
  <pre><code>$route['admin/users/(:any)'] = 'admin/users/view/$1';
  $route['admin/users'] = 'admin/users';
  
  $route['admin/users/login'] = 'admin/users/login';
  
  $route['admin/users/edit/(:num)'] = 'admin/users/edit/$1';
  
  $route['admin'] = 'admin/users/login';
  </code></pre>
  
  <p>I miss something? what is wrong?</p>