Any Apache RewriteRule Experts?

I would like to redirect all requests that are NOT for a GIF file to the home page of another server.

I can do it so that if it IS a GIF request it works:
RewriteEngine On
RewriteRule ^(.*).gif$ http://anotherdomain.com/

But I can’t figure out how to do the opposite - only redirect if it is NOT a GIF request! I thought it would be this:
RewriteRule ^(.*)!.gif$ http://anotherdomain.com/

But that doesn’t seem to work…

Ah…figured it out I think:

RewriteEngine on
RewriteCond %{REQUEST_URI} !.gif$
RewriteRule .? http://anotherdomain.com/ [R=301,L]

Glad you got it working – thanks for the update!

-Eric