I had to get my wizbang script working on 30 urls, so I did Ggrot's trick and it worked great:
ErrorDocument 404 /cgi-bin/nph-wizbang.cgi
I took the time to make the script generate a 404 header if the 404 error's uri doesn't match up to my screen just to be tidy.
So I needed to do the domain base as well as index.html. I was thinking the index page was easy, just move it out of the way and that the 404/nph take care of it, but that doesn't solve the problem of the base domain request. As luck would have it, apache was set up not to allow directory content. 403 to save the day. ;)
ErrorDocument 403 /cgi-bin/nph-wizbang.cgi
And there is is! All the glory of mod_rewrite completely through the back door!
The moral?
Who knows, but I got the job done.
[htmlhelp.com...]