title: Route all actions of a controller except one in codeigniter
body: <p>I am doing a project in CodeIgniter and I want to route all the urls of a particular controller to a specific action except one. For e.g.,
  I want the url</p>
  
  <pre><code>myurl/mycontroller/myaction
  </code></pre>
  
  <p>to be handled by the action <code>myaction</code> but any other urls like</p>
  
  <pre><code>myurl/mycontroller/myaction1
  myurl/mycontroller/myaction2
  myurl/mycontroller/myaction3
  </code></pre>
  
  <p>to be handled by action <code>abc</code> of a particular controller. I had searched across the internet and what I get is how to handle all urls by a certain controller except some. The way to do it is</p>
  
  <pre><code>$route['^(?!admin|user|setup|pages).*'] = "user/view/$0";
  </code></pre>
  
  <p>Here all urls will be handled by <code>user/view</code> except those whose 2'nd part of the url is <code>admin</code>, <code>user</code>, <code>setup</code> or <code>pages</code>.</p>