Redirect pages from index.html to slash

if ($request_uri ~* "^(.*/)index\.html$") {
return 301 $1;
}