Quoting Jack Ungerleider (jack at jacku.com):
> If you're using Apache, what about mod_rewrite? There's a whole guide to 
> doing URL rewrites on the Apache site called (oddly enough :-) "Apache 1.3 
> URL Rewriting Guide". I have a somewhat crusty print out sitting here with 
> the following URL:  http://www.apache.org/docs/misc/rewriteguide.html
> 
> I don't know that it'll do what you want but I think it will.

can't you use the magic mime type module?
-- 
Bob Tanner <tanner at real-time.com>       | Phone : (952)943-8700
http://www.mn-linux.org                 | Fax   : (952)943-8500
Key fingerprint =  6C E9 51 4F D5 3E 4C 66 62 A9 10 E5 35 85 39 D9