> rewrite ^(.*/)index.html http://$host$1 permanent; Hi Mat, I like your proposal better, which looks more elegant without the if clause, but I don't know where to include it. Under location / I get a redirect loop. Thanks, Ezequiel Posted at Nginx Forum: http://forum.nginx.org/read.php?2,128951,129754#msg-129754