Mod_rewrite - php-fpm


while creating application using CodeIgniter, I noticed that when using other versions of the php template eg “PHP 7.3” I can’t use mod_rewrite to remove index.php.
It still shows “file not found” but when the apache template is set to “default” it works.

Is it possible to fix this problem?