RewriteEngine On # remove this, if you have it already RewriteCond %{REQUEST_URI} index.html RewriteRule ^(.*)index.html$ /$1/ [R=301,L]