That's actually something that's unique to Apache.
Or wait! mod_rewrite could do that! I'm not exactly certain of how you do that, I just tried a few ways to no avail, but a search in Google for mod_rewrite will definitely turn up how to do it.
Is that what you found before?