In general when we use site_url() in anchor tag in php code it auto insert "index.php" before the controller like
/index.php/controllerName/methodName
But in base_url it doesn't insert "index.php". I want to add auto index.php before the controller how site_url() works.
Already I searched and understood that the change will be in config file. But want to know the specific answer what I need to change.