My codeiginter project not worked without index.php in online
<p>My Codeigniter project worked well in localhost (i am using linux Cpanel)</p>

<p><a href="https://localhost/project/profile" rel="nofollow">https://localhost/project/profile</a></p>

<p>But without index.php in link it does not work online</p>

<p><a href="https://domainname.in/index.php/profile" rel="nofollow">https://domainname.in/index.php/profile</a></p>

<p>.htaccess file</p>

<pre><code>RewriteEngine on
RewriteCond $1 !^(index\.php|resources|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
</code></pre>

<p>and my <strong>route.php</strong> file</p>

<pre><code>$route['default_controller'] = "pages/home";
$route['404_override'] = '';
$route['pages/profile'] = "pages/profile"; 
$route['creators'] = "pages/userList";
$route['auth/logout'] = "auth/logout";
$route['auth'] = "auth/logout";
$route['auth/login'] = "auth/login";
$route['auth/register'] = "auth/register";
$route['pages/post'] = "pages/post";
$route[$username.'/about'] = "pages/menus/about";
$route[$username.'/credibility'] = "pages/menus/credibility";
$route[$username.'/release'] = "pages/menus/release";
$route[$username.'/jobs'] = "pages/menus/jobs";
$route[$username] = "pages/userList/userview/$1";   
</code></pre>