If a link is http://example.com it will redirect to http://example.com/index.html by default.
(or .php or anything like that).
But if the user types http://example.com/index.html in the url, I would like to show a 404 error.
I know I could do
RewriteEngine On
RewriteRule index.html 404.html [R=304,L]
But I would like something more general, that could work for every page.
Or simply :