I'm working on website that made by someone else using codeIgniter, when I upload it on my local server it says object not found so I added the .htacess file to remove the index.php from the link
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
and I faced another issue which is the page display 404 page not found (not the same issue before it) and my config file like this, base_url :
$root = "https://".$_SERVER['HTTP_HOST'];
$root .= str_replace(basename($_SERVER['SCRIPT_NAME']),"",$_SERVER['SCRIPT_NAME']);
$config['base_url'] = $root;
index page:
$config['index_page'] = '';
uri protocol:
$config['uri_protocol'] = 'REQUEST_URI';
and it's work when I add "index.php" in the link.