First of all, i have tried the suggestion specified in here:
OK, You mentioned lot of Stack links which related to your question.
Change this settings
$config['base_url'] = '';
$config['index_page'] = '';
$config['uri_protocol'] = 'AUTO';
and add this in .htaccess
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
Note: Some time in localhost
index.php
will not removed.
and to include your css/js/images
CSS:
JS :
Img:
So file structure would be
- application
- assets
- style
- material-design-icons.css
- font.css
- app.css
- js
- easing.js
- image
- logo.jpg
- index.php
- .htaccess(Post in my code)
EDIT 01
In config/routes.php
$route['default_controller'] = "";//give default controller name
$route['404_override'] = '';