title: How to remove controller name from url making it clean in codeigniter
body: <p>I have the following url..</p>
  
  <pre><code>http://localhost/ci/site_controller/home
  </code></pre>
  
  <p>I want to remove <code>site_controller</code> <strong>controller</strong> from url resulting in..</p>
  
  <pre><code> http://localhost/ci/home
  </code></pre>
  
  <p>How can I do this in CodeIgniter ?</p>
  
  <p>Note: If you'll ask what I've tried than I've just done searching over Google as I don't know how to use mod_rewrite.</p>
  
  <p><strong>EDIT</strong></p>
  
  <p>I have this in my routes.php</p>
  
  <pre><code>$route['default_controller'] = "site_controller/home";
  $route['ci/home'] = 'ci/site_controller/home';
  $route['404_override'] = '';
  </code></pre>
  
  <p>but still not working!</p>
  
  <p><strong>.htaccess</strong></p>
  
  <pre><code>RewriteEngine On
  RewriteBase /ci/
  RewriteCond %{REQUEST_URI} ^system.*
  RewriteRule ^(.*)$ /index.php/$1 [L]
  
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ index.php/$1 [L]
  
  ErrorDocument 404 /index.php
  </code></pre>