In Apache HTTPD 2.2, I want to make it so requests for /index.foo or /foo, if they aren't files or directories, become /index.php?transform=foo, regardless of how many levels the URL has.
Criteria for success would be:
http://www.site.example/index.foo->http://www.site.example/index.php?transform=foohttp://www.site.example/foo->http://www.site.example/index.php?transform=foohttp://www.site.example/bar/baz/foo->http://www.site.example/bar/baz/index.php?transform=foo
I.e., I don't want rewrites to be relative to the .htaccess directory; I want them to be relative to the topmost directory in the request.