I have tried all the possible solutions that I found here in similar questions but with no luck!
I just want to remove the index.php
from the URI.
I am using Codeigniter 3, on macOS High Sierra and MAMP PRO 5.2.
In the .htaccess file which is located inside application folder (root) I have the following code:
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
I have also tried
RewriteRule ^(.*)$ index.php?/$1 [L]
After that I have tried the followings in the config.php file:
$config['base_url'] = 'http://localhost:8888/';
or
$config['base_url'] = 'http://'.$_SERVER['HTTP_HOST'].'/';
and also
$config['index_page'] = 'index.php';
or
$config['index_page'] = '';
I am not sure if I am missing something or the issue is with my Apache server.