1. First search for the,

    $config['index_page'] = "index.php";
    
        In application/config/config.php 
  2. Then  create the .htaccess file  in main folder.Then paste this..........

    RewriteEngine on
    RewriteCond $1 !^(index\\.php|resources|robots\\.txt)
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^(.*)$ index.php/$1 [L,QSA]
    
    
    
          Now ur file will omit the index.php while running the project