Try:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/index.html
RewriteRule ^(.*)$ /index.html [L,R=301]
As you said, this does not work, I would try:
RewriteEngine on
RewriteCond %{REQUEST_URI} !^/aaa.html
RewriteRule ^(.*)$ /aaa.html [L,R=301]
index.html is the common default file name, so there may be rules that are at the server level, and not in your .htaccess. It depends on the server settings.
source
share