title: codeigniter routes remove the controller name
body: <p>In my site i have many controllers like
  1. admin
  2. pages
  3. hotels ...</p>
  
  <p>My url is <code>http://localhost/pages/page/about</code> ---> I want it to be as <code>http://sitename/page/about</code></p>
  
  <p><code>http://localhost/admin/admin</code>---> I want it to be as <code>http://sitename/admin</code></p>
  
  <p><code>http://localhost/hotels/display/samplehotel</code>---> I want it to be as <code>http://sitename/display/samplehotel</code></p>
  
  <p>in my routes file i write as 
  <code>$route['pages'] = "pages/$1";</code> [Pages is my controller name].</p>
  
  <p>But it shows an error. How to write this. Please help me</p>