Redirect pages from index.aspx to slash

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