You have to do two job to remove the index.php from the URL.
1st Job -
changed the config file
$config['index_page'] = 'index.php';
To
$config['index_page'] = '';
(Which you have already done)
2nd Job -
You have to add a .htaccess file in your root directory and make sure that your php mod_rewrite is enabled.
For more info, please refer the RewriteRule docs.
RewriteEngine on
RewriteRule ^([a-z0-9_-]+).html$ index.php/page/$1 [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond $1 !^(index.php|asset|robots.txt)
RewriteRule ^(.*)$ index.php/$1 [L]
Just try this. Hope it works and let me know whats going on.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…