I have the following problem.
I'm working with a system in CodeIgniter and need to remove the index.php from the url.
My .htaccess is as below:
RewriteEngine on
RewriteCond $1 !^(index\.php|resources|assets|robots\.txt)
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php/$1 [L,QSA]
The index.php itself has been solved. The problem is that the system has a language plugin and the configuration of the link is as below:
www.site.com.br/pt/controller
The issue is that this htacces is overwriting pt and I can not remove this pt. And in case, they will have other languages like en, es and etc.
How do you resolve this?