As others have said, make sure that the AllowOverride parameter is set to All in the apache configuration or in the virtual host file. If you specify the path where you have the encoding installed, your htaccess should look like this:
RewriteEngine On RewriteBase /path/learn_ci RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ /path/learn_ci/index.php/$1 [L]
Also remember that any resources you use (img, css, js, etc.) refer to either the base_url()
function or the use of relative paths. The root of your project will be / path / learn _ci.
I find it easier to create a virtual host and add an entry to my hosts file locally. It reflects real life much better.
source share