I can give you a hint too, you're going to want to use a RewriteCond for the first one you want to do, and a relatively easy RewriteRule for the second. It's possible to have almost as many rules as you want, though it is easy to run into conflicts. The rules cascade though, so it'll go through them one by one in order until it finds one that matches.
You cannot just do that with mod_rewrite, you must modify the virtualhosts in the apache config.
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw