RewriteEngine On
RewriteRule ^(.*)/index.(php|htm(l?))$ $1/ [R=301,L]
