what it did work for me, was this: by the way, I asked DeepSeek:
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /
# Redirigir URLs que contienen index.php
RewriteCond %{THE_REQUEST} ^GET.*index\.php [NC]
RewriteRule (.*?)index\.php/*(.*) /$1$2 [R=301,NE,L]
# Reescribir todas las demás solicitudes
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L]
</IfModule>