I want to make redirect 301:
http://www.example.com/en/index.html
to be http://www.example.com/en/
.
How I can do this?
You can use this code in your DOCUMENT_ROOT/.htaccess
file:
RewriteEngine On
# remove index.html
RewriteCond %{THE_REQUEST} /index\.html [NC]
RewriteRule ^(.*?)index\.html$ /$1 [L,R=302,NC,NE]