RewriteEngine On
RewriteCond %{REQUEST_URI} index\.php
RewriteRule ^(.*)index\.php$ /$1/ [R=301,L]
yukarıdaki kısmı .htaccess dosyanıza yazmanız yeterli, son olarak yine bunun gereksiz birşey olduğunun altını çiziyorum.
RewriteEngine On
RewriteCond %{REQUEST_URI} index\.php
RewriteRule ^(.*)index\.php$ /$1/ [R=301,L]