title: 404 page not found while page redirection in codeigniter
body: <p>Hi all I tried to redirect to dashboard controller addLocation function under admin folder i have given the link below its showing 404 page not found,</p>
  
  <p><a href="http://localhost/kooly/admin/dashboard/addLocation" rel="nofollow noreferrer">http://localhost/kooly/admin/dashboard/addLocation</a></p>
  
  <p>This is my htaccess file help me to solve this redirection problem</p>
  
  <p>.htaccess</p>
  
  <pre><code>&lt;IfModule mod_rewrite.c&gt;
      RewriteEngine On
      RewriteBase /kooly/
  DirectoryIndex index.php
  RewriteEngine on
  RewriteCond $1 !^(index\.php|images|css|js|robots\.txt|favicon\.ico)
  RewriteCond %{REQUEST_FILENAME} !-f
  RewriteCond %{REQUEST_FILENAME} !-d
  RewriteRule ^(.*)$ ./index.php/$1 [L,QSA]
  &lt;/IfModule&gt;
  
  &lt;IfModule !mod_rewrite.c&gt;
      # If we don't have mod_rewrite installed, all 404's
      # can be sent to index.php, and everything works as normal.
      # Submitted by: ElliotHaughin
  
      ErrorDocument 404 /index.php
  &lt;/IfModule&gt; 
  </code></pre>