Remove index.php from url in CodeIgniter 3
snippet in htaccess

Remove index.php from url in CodeIgniter 3

user1822

place your htacces file in the root directory and use this following code
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?/$1 [L]