Codeigniter 2: The requested URL was not found on this server (404) error. CI isn't routing the right way
This is one of the most repeated questions, but I did not get it and had to ask. I use CI 2. I removed index.php from URL by following steps: In config.php I set $config['index_page'] = ''; $config['uri_protocol'] = 'REQUEST_URI'; In routes.php I set $route['default_controller'] = "InterviewController"; here is my .htaccess RewriteEngine on RewriteCond $1 !^(index\.php|img|robots\.txt|css|js|libraries/ckeditor|upload) RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /index.php/$1 [L] addDefaultCharset UTF-8 I enabled mod_rewrite on the web server. So