I want to temporarily redirect all requests for a site to index.html, using apache only. Is this mod_rewrite approach going to work, and is it the right way to do it?
RewriteEngine on RewriteRule ^.*$ /index.html [R]
You need to use something like this I think:
Like pritaeas noted, you should use the 302 code to specify that the move is temporary. And you want to match everything but
Also, if you have any images, stylesheets, JS files, or other resources that are in the same directory or subdirectory, you need to also make exceptions for those or turn the rewrite engine off in those directories.