i had recently switched ci v.3 and i had faced problems my live server redirect to me 404 error page when i hit my url it was perfectly fine on local host but it's not working on server. my .htaccess file is
RewriteEngine on
RewriteCond $1 !^(index\.php|images|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /index.php?/$1 [L]
# 2 ---- Prevent directory file listing in all of your folders ----
IndexIgnore *