Redirecting http://www.example.com/index.html to http://www.example.com/ (without looping)
Solution 1:
Try a RewriteCond
from mod_rewrite:
RewriteEngine On
RewriteCond %{QUERY_STRING} !^/$
RewriteRule /index.html / [R]
This says if the query string is not /
then rewrite /index.html
as /
(should not loop).
Solution 2:
My solution (which seems to work so I accepted it), inspired from PP's response, is:
RewriteEngine on RewriteCond %{REQUEST_URI} ^\/index\.html$ RewriteRule .* http://www.example.com/ [R=302,L]
Any non-modrewrite solution? I had to activate a new Apache module, which I try to avoid.