My objective is to write an .htaccess file that redirects
all requests to a particular file. This .htaccess file will reside in the top level web root directory.
I've tried this:
RediectMatch .* http://example.com/maint_notice.php
The problem is that it results in a request-loop, with the .php file never getting accessed.
I'd like to change the RedirectMatch so that it redirects all requests
except for requests for that file. But I don't know how to write a match pattern that accomplishes this. If there were a "RedirectNotMatch" directive, that would solve the problem.
Any ideas?