For a single-page app, I have the following RewriteRule in my .htaccess file to direct all traffic to index.html so that a JS can parse the URL and fire controllers accordin
I also wanted all URL's routed to the same file on my server, and found this. The code provided there does exactly what you're after. Here is that code:
Options +FollowSymLinks
IndexIgnore */*
# Turn on the RewriteEngine
RewriteEngine On
# Rules
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . index.php
This would route everything to index.php. Just change it to index.html for your purposes, and I think that will work.
BTW, something like "www.mydomain.com/more/nested/resource/123" would be routed successfully.