Please read the question carefully before marking as duplicate.
We all know, that using in .htaccess:
.htaccess
RewriteCond %{REQUEST_FIL
Insert these rules just below RewriteEngine On line:
RewriteEngine On
RewriteCond %{THE_REQUEST} /index\.php [NC] RewriteRule ^(.*?)index\.php[^/] /$1? [L,R=302,NC,NE] RewriteCond %{THE_REQUEST} /index\.php [NC] RewriteRule ^(.*?)index\.php(?:/(.*))?$ /$1$2? [L,R=302,NC,NE]